configure: Suffix flags.

ck_pring
Samy Al Bahra 14 years ago
parent 8fd90d71c3
commit 295a63a90b

12
configure vendored

@ -214,7 +214,7 @@ case $PLATFORM in
"sun4u"|"sun4v"|"sparc64") "sun4u"|"sun4v"|"sparc64")
PLATFORM=sparcv9 PLATFORM=sparcv9
ENVIRONMENT=64 ENVIRONMENT=64
LDFLAGS="$LDFLAGS -m64" LDFLAGS="-m64 $LDFLAGS"
;; ;;
i386|i486|i586|i686|i586_i686|pentium*|athlon*|k5|k6|k6_2|k6_3) i386|i486|i586|i686|i586_i686|pentium*|athlon*|k5|k6|k6_2|k6_3)
case $SYSTEM in case $SYSTEM in
@ -264,7 +264,7 @@ case $PLATFORM in
"amd64"|"x86_64") "amd64"|"x86_64")
PLATFORM=x86_64 PLATFORM=x86_64
ENVIRONMENT=64 ENVIRONMENT=64
LDFLAGS="$LDFLAGS -m64" LDFLAGS="-m64 $LDFLAGS"
;; ;;
"i86pc") "i86pc")
ISA=`isainfo -n 2> /dev/null || echo i386` ISA=`isainfo -n 2> /dev/null || echo i386`
@ -348,13 +348,13 @@ fi
if test "$COMPILER" = "suncc"; then if test "$COMPILER" = "suncc"; then
LD=/bin/ld LD=/bin/ld
LDFLAGS="$LDFLAGS -G" LDFLAGS="-G $LDFLAGS"
CFLAGS="$CFLAGS -xO5" CFLAGS="-xO5 $CFLAGS"
PTHREAD_CFLAGS="-mt -lpthread" PTHREAD_CFLAGS="-mt -lpthread"
elif test "$COMPILER" = "gcc"; then elif test "$COMPILER" = "gcc"; then
LD=$CC LD=$CC
LDFLAGS="$LDFLAGS -shared -fPIC" LDFLAGS="-shared -fPIC $LDFLAGS"
CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -std=gnu99 -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -fstrict-aliasing -O2 -pipe -Wno-parentheses" CFLAGS="-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -std=gnu99 -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -fstrict-aliasing -O2 -pipe -Wno-parentheses $CFLAGS"
PTHREAD_CFLAGS="-pthread" PTHREAD_CFLAGS="-pthread"
else else
assert "" "unknown compiler" assert "" "unknown compiler"

Loading…
Cancel
Save