summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-07-28 19:13:43 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-07-28 19:45:04 +0300
commiteed6a079d2f989bdbc24ff1d3f8fc4360fc577b0 (patch)
treece63f40acdf108a09685a5caee073107a9dc92e5
parent4694e441c31378e7c5bfaa34164785bd2f93e38b (diff)
meson: Correctly locate libc++
The meson find_library() function takes a library name without the "lib" prefix. Its usage to find lic++ is thus not correct, and meson warns about it: WARNING: find_library('libc++') starting in "lib" only works by accident and is not portable Fix it by dropping the "lib" prefix. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 031e1eda..7959b538 100644
--- a/meson.build
+++ b/meson.build
@@ -109,7 +109,7 @@ if cc.get_id() == 'clang'
# Use libc++ by default if available instead of libstdc++ when compiling
# with clang.
- if cc.find_library('libc++', required : false).found()
+ if cc.find_library('c++', required : false).found()
cpp_arguments += [
'-stdlib=libc++',
]