diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-07-28 19:13:43 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-07-28 19:45:04 +0300 |
commit | eed6a079d2f989bdbc24ff1d3f8fc4360fc577b0 (patch) | |
tree | ce63f40acdf108a09685a5caee073107a9dc92e5 /meson.build | |
parent | 4694e441c31378e7c5bfaa34164785bd2f93e38b (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>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 2 |
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++', ] |