[cheese/wip/lantw/build-dont-use-lib-prefix-in-find_library] build: Don't use 'lib' prefix in find_library
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/wip/lantw/build-dont-use-lib-prefix-in-find_library] build: Don't use 'lib' prefix in find_library
- Date: Wed, 7 Aug 2019 08:05:52 +0000 (UTC)
commit 4a87e85672e6eed8547945c907c153dcbb55d64c
Author: Ting-Wei Lan <lantw src gnome org>
Date: Wed Aug 7 15:55:39 2019 +0800
build: Don't use 'lib' prefix in find_library
Meson passes it directly to -l option, so an extra 'lib' can cause error
because it tells the linker to find liblibcanberra-gtk3.so.
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index b3983f52..6e5d33d3 100644
--- a/meson.build
+++ b/meson.build
@@ -111,7 +111,7 @@ gstreamer_pbutils_dep = dependency('gstreamer-pbutils-1.0')
gstreamer_plugins_bad_dep = dependency('gstreamer-plugins-bad-1.0', version: '>= 1.4')
gtk_dep = dependency('gtk+-3.0', version: '>= 3.13.4')
libcanberra_dep = dependency('libcanberra')
-libcanberra_gtk_lib = meson.get_compiler('c').find_library('libcanberra-gtk3')
+libcanberra_gtk_lib = meson.get_compiler('c').find_library('canberra-gtk3')
libcanberra_gtk3_dep = declare_dependency(dependencies: [libcanberra_gtk_lib])
m_dep = cc.find_library('m')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]