From 295a63a90b33a0ee5803b4280c359b35916a50ea Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Tue, 17 May 2011 19:38:56 -0400 Subject: [PATCH] configure: Suffix flags. --- configure | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index f97b0a8..606635d 100755 --- a/configure +++ b/configure @@ -214,7 +214,7 @@ case $PLATFORM in "sun4u"|"sun4v"|"sparc64") PLATFORM=sparcv9 ENVIRONMENT=64 - LDFLAGS="$LDFLAGS -m64" + LDFLAGS="-m64 $LDFLAGS" ;; i386|i486|i586|i686|i586_i686|pentium*|athlon*|k5|k6|k6_2|k6_3) case $SYSTEM in @@ -264,7 +264,7 @@ case $PLATFORM in "amd64"|"x86_64") PLATFORM=x86_64 ENVIRONMENT=64 - LDFLAGS="$LDFLAGS -m64" + LDFLAGS="-m64 $LDFLAGS" ;; "i86pc") ISA=`isainfo -n 2> /dev/null || echo i386` @@ -348,13 +348,13 @@ fi if test "$COMPILER" = "suncc"; then LD=/bin/ld - LDFLAGS="$LDFLAGS -G" - CFLAGS="$CFLAGS -xO5" + LDFLAGS="-G $LDFLAGS" + CFLAGS="-xO5 $CFLAGS" PTHREAD_CFLAGS="-mt -lpthread" elif test "$COMPILER" = "gcc"; then LD=$CC - LDFLAGS="$LDFLAGS -shared -fPIC" - 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" + LDFLAGS="-shared -fPIC $LDFLAGS" + 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" else assert "" "unknown compiler"