diff options
-rw-r--r-- | giscanner/dumper.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py index bd3029fc..0ca8272d 100644 --- a/giscanner/dumper.py +++ b/giscanner/dumper.py @@ -155,6 +155,10 @@ class DumpCompiler(object): args.append('-I' + os.path.join(self._uninst_srcdir, 'girepository')) args.extend(pkgconfig_flags) + cflags = os.environ.get('CFLAGS') + if (cflags): + for iflag in cflags.split(): + args.append(iflag) for include in self._options.cpp_includes: args.append('-I' + include) args.extend(['-c', '-o', output]) @@ -176,6 +180,11 @@ class DumpCompiler(object): args.extend([self._linker_cmd, '-o', output]) + cflags = os.environ.get('CFLAGS') + if (cflags): + for iflag in cflags.split(): + args.append(iflag) + # 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 # priority (or we might run with installed library that is older) |