summaryrefslogtreecommitdiffstats
path: root/release/build-osx-64
blob: 3328a8ad0f53ac6f537536b6bbb96e4dd3a73de6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# This script builds a 64-bit version of TigerVNC on OS/X 10.6 or later.
# NASM 2.07 or later from MacPorts must be installed in /opt/local.

set -e

SCRIPTDIR=`dirname $0`
pushd $SCRIPTDIR/..
CFLAGS='-O3'
CXXFLAGS=$CFLAGS
export CFLAGS CXXFLAGS
if [ ! -f ./configure ]; then
    autoreconf -fiv
fi
configure --host=x86_64-apple-darwin10.0.0 NASM=/opt/local/bin/nasm
make
popd