summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHalton Huo <halton.huo@sun.com>2009-09-01 14:27:42 +0800
committerHalton Huo <halton.huo@sun.com>2009-09-07 13:49:53 +0800
commit1f115d74ba4bd907078919374822a5f63571e00a (patch)
tree62f924c9e47e0ae95b6a7334b25aa6b17be4391e
parenta591c88c5cc7df207eff7fb7e28bbc6fe84ecad9 (diff)
downloadgobject-introspection-1f115d74ba4bd907078919374822a5f63571e00a.tar.gz
Make g-ir-scanner 64-bit enable. Closes #593639
-rw-r--r--giscanner/dumper.py9
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)