aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2017-08-11 21:46:26 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-08-13 21:12:43 +0300
commit691ad706ad81341ad4b84730d77de39a4fb2a153 (patch)
tree84d43cd566f390e92daf186abc567be0ef4dc0e3 /mesonbuild
parent462813f8f10db550a4897bfcf20aa1d675543edb (diff)
downloadmeson-691ad706ad81341ad4b84730d77de39a4fb2a153.zip
meson-691ad706ad81341ad4b84730d77de39a4fb2a153.tar.gz
meson-691ad706ad81341ad4b84730d77de39a4fb2a153.tar.bz2
gnome: Only translate -l flags to --extra-library
Other linker arguments may contain '-l' as well, for instance '-L/usr/lib/x86_64-linux-gnu/foo' with Debian-style multiarch.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/modules/gnome.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 6bf8b7f..685a86b 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -367,7 +367,7 @@ class GnomeModule(ExtensionModule):
# Hack to avoid passing some compiler options in
if lib.startswith("-W"):
continue
- if gir_has_extra_lib_arg() and use_gir_args:
+ if gir_has_extra_lib_arg() and use_gir_args and lib.startswith("-l"):
lib = lib.replace('-l', '--extra-library=', 1)
ldflags.update([lib])