adium/adium

Parents ea7d0746818b
Children 2fa7640aa8ee
Update build.sh to find the 10.6 SDK with Xcode 4.3. However, hardcode CC to gcc (from MacPorts).

Building at least GLib with clang never worked right for me.
--- a/Dependencies/build.sh Tue May 08 18:03:59 2012 +0200
+++ b/Dependencies/build.sh Tue May 08 18:05:54 2012 +0200
@@ -22,8 +22,8 @@
NUMBER_OF_CORES=`sysctl -n hw.activecpu`
# Also try /Developer-old, just in case XCode 4 is installed
-DEVELOPER="/Developer"
-SDK_ROOT="${DEVELOPER}/SDKs/MacOSX10.6.sdk"
+DEVELOPER=$(xcode-select -print-path)
+SDK_ROOT="${DEVELOPER}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"
MIN_OS_VERSION="10.6"
BASE_CFLAGS="-fstack-protector -isysroot $SDK_ROOT \
@@ -161,8 +161,8 @@
eval `$DEVELOPER/usr/bin/pump --startup`
else
# Try to find the right gcc, even when XCode4 is installed
- export CC="$DEVELOPER/usr/bin/gcc"
- export CXX="$DEVELOPER/usr/bin/g++"
+ export CC="/opt/local/bin/gcc-apple-4.2"
+ export CXX="/opt/local/bin/g++-apple-4.2"
export CCAS="$CC"
export OBJC="$CC"
fi