gcc-fat.sh
changeset 382 0940479cefdb
parent 274 f9ae0edd7bfa
     1.1 --- a/gcc-fat.sh	Sat Jun 01 12:42:16 2013 -0700
     1.2 +++ b/gcc-fat.sh	Sat Jun 01 12:49:54 2013 -0700
     1.3 @@ -4,29 +4,21 @@
     1.4  #
     1.5  # Usage: ./configure CC="sh gcc-fat.sh" && make && rm -rf x86 x64
     1.6  
     1.7 -# Intel 32-bit compiler flags (10.4 runtime compatibility)
     1.8 -GCC_COMPILE_X86="gcc-4.0 -arch i386 -mmacosx-version-min=10.4 \
     1.9 +DEVELOPER="`xcode-select -print-path`/Platforms/MacOSX.platform/Developer"
    1.10 +
    1.11 +# Intel 32-bit compiler flags (10.6 runtime compatibility)
    1.12 +GCC_COMPILE_X86="gcc -arch i386 -mmacosx-version-min=10.6 \
    1.13  -DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
    1.14 --nostdinc \
    1.15 --F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \
    1.16 --I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/include \
    1.17 --isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include"
    1.18 +-I/usr/local/include"
    1.19  
    1.20 -GCC_LINK_X86="\
    1.21 --L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1 \
    1.22 --Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
    1.23 +GCC_LINK_X86="-mmacosx-version-min=10.6"
    1.24  
    1.25 -# Intel 64-bit compiler flags (10.5 runtime compatibility)
    1.26 -GCC_COMPILE_X64="gcc-4.0 -arch x86_64 -mmacosx-version-min=10.5 \
    1.27 +# Intel 64-bit compiler flags (10.6 runtime compatibility)
    1.28 +GCC_COMPILE_X64="gcc -arch x86_64 -mmacosx-version-min=10.6 \
    1.29  -DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \
    1.30 --nostdinc \
    1.31 --F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \
    1.32 --I/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/include \
    1.33 --isystem /Developer/SDKs/MacOSX10.5.sdk/usr/include"
    1.34 +-I/usr/local/include"
    1.35  
    1.36 -GCC_LINK_X64="\
    1.37 --L/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/x86_64 \
    1.38 --Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk"
    1.39 +GCC_LINK_X64="-mmacosx-version-min=10.6"
    1.40  
    1.41  # Output both PowerPC and Intel object files
    1.42  args="$*"