[gtk-osx] Set CFLAGS_FOR_BUILD=CFLAGS



commit 65d3163376754626fb85e6bce2668880717beabd
Author: John Ralls <jralls ceridwen us>
Date:   Mon May 27 15:07:59 2013 -0700

    Set CFLAGS_FOR_BUILD=CFLAGS
    
    overcomes glibs new effort to support cross-compiling

 jhbuildrc-gtk-osx |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/jhbuildrc-gtk-osx b/jhbuildrc-gtk-osx
index fee47e6..beff1af 100644
--- a/jhbuildrc-gtk-osx
+++ b/jhbuildrc-gtk-osx
@@ -351,7 +351,11 @@ def setup_sdk(target, sdk_version, architectures=[_default_arch]):
             {"perl-xml-simple":{"ARCHFLAGS":"-arch i386 -arch x86_64"},
              "perl-xml-parser":{"ARCHFLAGS":"-arch i386 -arch x86_64"}})
 
-
+    # Finally when building normally we need to force CFLAGS_FOR_BUILD
+    # to our current CFLAGS so that everything will link with other
+    # build products. Note that this will generally break
+    # cross-compilation, not that it works anyway.
+    os.environ['CFLAGS_FOR_BUILD'] = os.environ['CFLAGS']
     return sdkdir
 
 # This is a convenience function for older .jhbuildrc-customs.


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