summaryrefslogtreecommitdiff
path: root/binary/darwin/test/gcc
blob: 7ac3eb545895e7e3ce5c48cc14d701da02dcffb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SQLITE=$HOME/sqlite
MYSQL=$HOME/odb/mysqlclient-5.1.51-osx10.4-i686
PGSQL=$HOME/pgsql-8.4.8
ORACLE=$HOME/oracle
BOOST=$HOME/boost

sqlite_build_options=
sqlite_use_options=

mysql_build_options=
mysql_use_options="--with-mysql-host=192.168.0.5 --with-mysql-client=$MYSQL/bin/mysql"

pgsql_build_options=
pgsql_use_options="--with-pgsql-host=192.168.0.5 --with-pgsql-client=$PGSQL/bin/psql"

oracle_build_options="--with-oci=$ORACLE"
oracle_use_options="--with-oracle-host=192.168.0.5 --with-oracle-service=xe --with-oracle-client=$ORACLE/sqlplus"

# @@ While we have Qt installed (as a framework), we don't have a g++ build
# that is both recent enough (so it can handle friend access) and that supports
# the -framework option. The target g++ (in /i686-apple-darwin8) does not work
# because of the different libgcc_s used by Qt and other code (exception handling
# does not work).
#
#
with_qt=n
with_boost=y

CC=gcc-4.2
CXX=g++-4.2
CPPFLAGS="-I$BOOST -I$SQLITE -I$MYSQL/include -I$PGSQL/include"
CXXFLAGS="-O3 -W -Wall -Wno-unknown-pragmas"
LDFLAGS="-L$BOOST/stage/lib -L$SQLITE -L$MYSQL/lib -L$PGSQL/lib"

export DYLD_LIBRARY_PATH=$SQLITE:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$MYSQL/lib:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$PGSQL/lib:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$ORACLE:$DYLD_LIBRARY_PATH

export DYLD_LIBRARY_PATH=$BOOST/stage/lib:$DYLD_LIBRARY_PATH