[gobject-introspection] Make g-ir-scanner 64-bit enable. Closes #593639



commit 1f115d74ba4bd907078919374822a5f63571e00a
Author: Halton Huo <halton huo sun com>
Date:   Tue Sep 1 14:27:42 2009 +0800

    Make g-ir-scanner 64-bit enable. Closes #593639

 giscanner/dumper.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index bd3029f..0ca8272 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]