summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/dumper.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index f48fcc11..793177b0 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -237,8 +237,6 @@ class DumpCompiler(object):
args.append(cppflag)
for cflag in shlex.split(os.environ.get('CFLAGS', '')):
args.append(cflag)
- for ldflag in shlex.split(os.environ.get('LDFLAGS', '')):
- args.append(ldflag)
# Make sure to list the library to be introspected first since it's
# likely to be uninstalled yet and we want the uninstalled RPATHs have
@@ -267,6 +265,10 @@ class DumpCompiler(object):
libtool,
self._options.libraries)
+ if not self._compiler.check_is_msvc():
+ for ldflag in shlex.split(os.environ.get('LDFLAGS', '')):
+ args.append(ldflag)
+
if not libtool:
# non-libtool: prepare distutils for linking the introspection
# dumper program...