gcc-fat.sh
changeset 623 5a86e7d5107f
parent 511 55a686ef0680
     1.1 --- a/gcc-fat.sh	Sat Jun 01 12:47:58 2013 -0700
     1.2 +++ b/gcc-fat.sh	Sat Jun 01 13:59:39 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 -
    1.19 -GCC_LINK_X86="\
    1.20 --L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1 \
    1.21 --Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
    1.22 +-I/usr/local/include"
    1.23  
    1.24 -# Intel 64-bit compiler flags (10.5 runtime compatibility)
    1.25 -GCC_COMPILE_X64="gcc-4.0 -arch x86_64 -mmacosx-version-min=10.5 \
    1.26 +GCC_LINK_X86="-mmacosx-version-min=10.6"
    1.27 +
    1.28 +# Intel 64-bit compiler flags (10.6 runtime compatibility)
    1.29 +GCC_COMPILE_X64="gcc -arch x86_64 -mmacosx-version-min=10.6 \
    1.30  -DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \
    1.31 --nostdinc \
    1.32 --F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \
    1.33 --I/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/include \
    1.34 --isystem /Developer/SDKs/MacOSX10.5.sdk/usr/include"
    1.35 +-I/usr/local/include"
    1.36  
    1.37 -GCC_LINK_X64="\
    1.38 --L/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/x86_64 \
    1.39 --Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk"
    1.40 +GCC_LINK_X64="-mmacosx-version-min=10.6"
    1.41  
    1.42  # Output both PowerPC and Intel object files
    1.43  args="$*"