[gtk-osx] Modify Guile Optimization for llvm-gcc



commit 29ad78440023b7f5d9dbee4a7b88adf7b26668f8
Author: John Ralls <jralls ceridwen us>
Date:   Sat Jan 21 12:17:18 2012 -0800

    Modify Guile Optimization for llvm-gcc
    
    Llvm-gcc and libtool don't link libguile correctly if optimization is
    set higher than 1.

 jhbuildrc-gtk-osx |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/jhbuildrc-gtk-osx b/jhbuildrc-gtk-osx
index 2ed5fda..648fe58 100644
--- a/jhbuildrc-gtk-osx
+++ b/jhbuildrc-gtk-osx
@@ -293,6 +293,10 @@ def setup_sdk(target, sdk_version, architectures=[_default_arch]):
 
     append_autogenargs("gnutls", "--disable-guile")
 
+    #Guile doesn't handle optimization well with llvm-gcc
+    if _osx_version.startswith("11") and _xcodeversion > 4.0:
+        append_autogenargs("guile", 'CFLAGS="$CFLAGS -O1"')
+
     return sdkdir
 # This is a convenience function for older .jhbuildrc-customs.
 def setup_sdk_10_4():



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