2009-05-09 06:01:53 +02:00
|
|
|
#!/bin/sh
|
2007-11-10 11:03:07 +01:00
|
|
|
|
|
|
|
path=`dirname $0`
|
2009-05-09 06:01:53 +02:00
|
|
|
. "$path/SETUP.sh"
|
2007-11-10 11:03:07 +01:00
|
|
|
|
2009-05-09 06:01:53 +02:00
|
|
|
# Take only #define options - the others are gcc specific.
|
|
|
|
# (real fix is for SETUP.sh not to put gcc specific options in $debug_cflags)
|
|
|
|
DEFS=""
|
|
|
|
for F in $debug_cflags ; do
|
2009-07-07 13:19:24 +02:00
|
|
|
expr "$F" : "^-D" && DEFS="$DEFS $F"
|
2009-05-09 06:01:53 +02:00
|
|
|
done
|
|
|
|
debug_cflags="-O0 -g $DEFS"
|
2007-11-10 11:03:07 +01:00
|
|
|
|
2009-07-07 13:19:24 +02:00
|
|
|
extra_flags="-m32 -mt -D_FORTEC_ -xbuiltin=%all -xlibmil -xlibmopt -fns=no -xprefetch=auto -xprefetch_level=3 $debug_cflags"
|
2009-05-09 06:01:53 +02:00
|
|
|
extra_configs="$max_configs --with-libevent $debug_configs"
|
2007-11-10 11:03:07 +01:00
|
|
|
|
2009-05-09 06:01:53 +02:00
|
|
|
warnings=""
|
|
|
|
c_warnings=""
|
|
|
|
cxx_warnings=""
|
|
|
|
base_cxxflags="-noex"
|
2007-11-10 11:03:07 +01:00
|
|
|
|
2009-05-09 06:01:53 +02:00
|
|
|
CC=cc
|
|
|
|
CFLAGS="-xstrconst"
|
2007-11-10 11:03:07 +01:00
|
|
|
CXX=CC
|
2009-05-09 06:01:53 +02:00
|
|
|
LDFLAGS="-lmtmalloc"
|
2007-11-10 11:03:07 +01:00
|
|
|
|
2009-05-09 06:01:53 +02:00
|
|
|
. "$path/FINISH.sh"
|