[gtk-osx] Make i386/x86_64 universal builds only for MacOS 10.13 and earlier.



commit 6d082ee505557d785271e0d6433e6067700bd546
Author: John Ralls <jralls ceridwen us>
Date:   Tue Jun 5 21:59:52 2018 -0700

    Make i386/x86_64 universal builds only for MacOS 10.13 and earlier.
    
    MacOS 10.14 deprecates i386 and requires an extra library.

 jhbuildrc-gtk-osx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/jhbuildrc-gtk-osx b/jhbuildrc-gtk-osx
index 7621f88..8c7e6af 100644
--- a/jhbuildrc-gtk-osx
+++ b/jhbuildrc-gtk-osx
@@ -318,14 +318,15 @@ def setup_sdk(target=_target, sdk_version=None, architectures=[_default_arch]):
     append_autogenargs("guile", 'CFLAGS="$CFLAGS -O1"')
     #Defining ARCHFLAGS globally messes up waf, so we need to define
     #it here for our two perl modules:
-    module_extra_env.update(
+    if (_osx_version < 14):
+        module_extra_env["expat"] = {'CFLAGS':os.environ['CFLAGS'] + ' -arch i386 -arch x86_64'}
+        module_extra_env.update(
             {"perl-xml-simple":{"ARCHFLAGS":"-arch i386 -arch x86_64"},
              "perl-xml-parser":{"ARCHFLAGS":"-arch i386 -arch x86_64"}})
     #Some packages require special arguments or flags to compile with Clang:
     module_extra_env["pkg-config"] = {'CFLAGS': os.environ['CFLAGS'] + ' -std=gnu89'}
     append_autogenargs('libgcrypt', 'CFLAGS="$CFLAGS -fheinous-gnu-extensions"')
     module_makeargs['liboil'] = 'CFLAGS="$CFLAGS -DHAVE_SYMBOL_UNDERSCORE -fheinous-gnu-extensions"'
-    module_extra_env["expat"] = {'CFLAGS':os.environ['CFLAGS'] + ' -arch i386 -arch x86_64'}
     append_autogenargs('babl', '--disable-sse')
 
     # openssl doesn't understand DESTDIR, but luckily it has its own mechanism.


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