aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2017-07-24 20:48:13 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-08-02 21:45:50 +0300
commit00a3d1ac4f86c85b3e0ba8e929e34547d20a0134 (patch)
treefa56862dc6f7f4498cfe39635e7470627fc808c8 /mesonbuild
parentcfb714d42a1d063140d744daa3371f3363dadf71 (diff)
downloadmeson-00a3d1ac4f86c85b3e0ba8e929e34547d20a0134.zip
meson-00a3d1ac4f86c85b3e0ba8e929e34547d20a0134.tar.gz
meson-00a3d1ac4f86c85b3e0ba8e929e34547d20a0134.tar.bz2
gnome: Fix translation of -l to --extra-library args
We prefer to use the --extra-library parameter for passing -l arguments to g-ir-scanner, however we need to be careful to only replace the first '-l' occurrence to not translate '-lfoo-lib' to '--extra-library=foo--extra-library=ib'
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 addcab3..1630d95 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -368,7 +368,7 @@ class GnomeModule(ExtensionModule):
if lib.startswith("-W"):
continue
if gir_has_extra_lib_arg() and use_gir_args:
- lib = lib.replace('-l', '--extra-library=')
+ lib = lib.replace('-l', '--extra-library=', 1)
ldflags.update([lib])
if isinstance(dep, PkgConfigDependency):