Added scripts for building cross-compatible binaries and 64-bit binaries on OS/X
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3945 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/release/build-compat-osx b/release/build-compat-osx
new file mode 100755
index 0000000..fd85bda
--- /dev/null
+++ b/release/build-compat-osx
@@ -0,0 +1,21 @@
+#!/bin/sh
+# This script builds a version of TigerVNC on OS/X 10.5 or later which is
+# compatible with OS/X 10.4 or later. The OS/X 10.4 compatibility SDK (part
+# of XCode) must be installed.
+
+set -e
+
+SCRIPTDIR=`dirname $0`
+pushd $SCRIPTDIR/..
+CC=gcc-4.0
+CXX=g++-4.0
+CPP=cpp-4.0
+CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3 -m32'
+CXXFLAGS=$CFLAGS
+LDFLAGS=$CFLAGS
+CPPFLAGS=$CFLAGS
+export CFLAGS CXXFLAGS LDFLAGS CPPFLAGS CC CXX CPP
+autoreconf -fiv
+configure --x-libraries=/usr/X11R6/lib/
+make
+popd