| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
path=`dirname $0` |
| 4 |
. "$path/SETUP.sh" |
| 5 |
|
| 6 |
# Take only #define options - the others are gcc specific. |
| 7 |
# (real fix is for SETUP.sh not to put gcc specific options in $debug_cflags) |
| 8 |
DEFS="" |
| 9 |
for F in $debug_cflags ; do |
| 10 |
expr "$F" : "^-D" && DEFS="$DEFS $F" |
| 11 |
done |
| 12 |
debug_cflags="-O0 -g $DEFS" |
| 13 |
|
| 14 |
extra_flags="-m64 -mt -D_FORTEC_ -xlibmopt -fns=no $debug_cflags" |
| 15 |
extra_configs="$max_configs --with-libevent $debug_configs" |
| 16 |
|
| 17 |
warnings="" |
| 18 |
c_warnings="" |
| 19 |
cxx_warnings="" |
| 20 |
base_cxxflags="-noex" |
| 21 |
|
| 22 |
CC=cc |
| 23 |
CFLAGS="-xstrconst" |
| 24 |
CXX=CC |
| 25 |
LDFLAGS="-lmtmalloc" |
| 26 |
|
| 27 |
. "$path/FINISH.sh" |