Make g-ir-scanner 64-bit enable. Closes #593639
authorHalton Huo <halton.huo@sun.com>
Tue, 1 Sep 2009 06:27:42 +0000 (14:27 +0800)
committerHalton Huo <halton.huo@sun.com>
Mon, 7 Sep 2009 05:49:53 +0000 (13:49 +0800)
giscanner/dumper.py

index bd3029f..0ca8272 100644 (file)
@@ -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)