blob: af492c5fd02d3fd240573cea4237ddc4972a7eb8 [file] [log] [blame]
DRCd4553932010-01-12 05:25:44 +00001#!/bin/sh
2# This script builds a version of TigerVNC on OS/X 10.5 or later which is
3# compatible with OS/X 10.4 or later. The OS/X 10.4 compatibility SDK (part
4# of XCode) must be installed.
5
6set -e
7
8SCRIPTDIR=`dirname $0`
9pushd $SCRIPTDIR/..
10CC=gcc-4.0
11CXX=g++-4.0
12CPP=cpp-4.0
13CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3 -m32'
14CXXFLAGS=$CFLAGS
15LDFLAGS=$CFLAGS
16CPPFLAGS=$CFLAGS
17export CFLAGS CXXFLAGS LDFLAGS CPPFLAGS CC CXX CPP
DRC3cca6af2010-01-22 09:37:27 +000018if [ ! -f ./configure ]; then
19 autoreconf -fiv
20fi
DRCd4553932010-01-12 05:25:44 +000021configure --x-libraries=/usr/X11R6/lib/
22make
23popd