diff options
author | Florian Müllner <fmuellner@gnome.org> | 2017-07-24 20:48:13 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-02 21:45:50 +0300 |
commit | 00a3d1ac4f86c85b3e0ba8e929e34547d20a0134 (patch) | |
tree | fa56862dc6f7f4498cfe39635e7470627fc808c8 | |
parent | cfb714d42a1d063140d744daa3371f3363dadf71 (diff) | |
download | meson-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'
-rw-r--r-- | mesonbuild/modules/gnome.py | 2 |
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): |