From eed6a079d2f989bdbc24ff1d3f8fc4360fc577b0 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 28 Jul 2023 19:13:43 +0300 Subject: 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 Reviewed-by: Kieran Bingham --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++', ] -- cgit v1.2.1