aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/gnome.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 89210a9..3c6bcad 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -565,6 +565,7 @@ class GnomeModule(ExtensionModule):
ldflags += list(dep_ldflags)
scan_command += ['--cflags-begin']
scan_command += cflags
+ scan_command += state.environment.coredata.external_args[lang]
scan_command += ['--cflags-end']
# need to put our output directory first as we need to use the
# generated libraries instead of any possibly installed system/prefix
@@ -595,6 +596,11 @@ class GnomeModule(ExtensionModule):
d = os.path.join(state.environment.get_build_dir(), d)
scan_command.append('-L' + d)
scan_command += ['--library', libname]
+
+ for link_arg in state.environment.coredata.external_link_args[lang]:
+ if link_arg.startswith('-L'):
+ scan_command.append(link_arg)
+
scankwargs = {'output': girfile,
'command': scan_command,
'depends': depends}