summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-12-01 14:35:21 +0400
committerIvan Maidanski <ivmai@mail.ru>2011-12-01 14:35:21 +0400
commitf7271c2ae18cf39ff759c6ff284e0065c4d24738 (patch)
tree60f4411ae5611d24d49443371970436342749c9d /configure.ac
parentc100a344de1c367073d9c570c8ef57a3758095f7 (diff)
downloadlibatomic_ops-f7271c2ae18cf39ff759c6ff284e0065c4d24738.tar.gz
On altering CFLAGS value in configure place client flags at end
* configure.ac (CFLAGS): Always append old CFLAGS value (instead of placing it at start).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 3c6c282..5928de5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,7 @@ if test "$GCC" = yes; then
AC_MSG_RESULT(-fPIC)
PICFLAG=-fPIC
# Workaround: at least GCC 3.4.6 does not define this macro.
- CFLAGS="$CFLAGS -D__PIC__=1"
+ CFLAGS="-D__PIC__=1 $CFLAGS"
;;
*-*-cygwin* | *-*-mingw*)
# Cygwin and Mingw[-w32/64] do not need -fPIC.
@@ -39,18 +39,18 @@ if test "$GCC" = yes; then
;;
esac
# Output all warnings.
- CFLAGS="$CFLAGS -Wall -Wextra"
+ CFLAGS="-Wall -Wextra $CFLAGS"
else
case "$host" in
*-*-hpux*)
AC_MSG_RESULT("+Z")
PICFLAG="+Z"
- CFLAGS="$CFLAGS +O2 -mt"
+ CFLAGS="+O2 -mt $CFLAGS"
;;
*-*-solaris*)
AC_MSG_RESULT(-Kpic)
PICFLAG=-Kpic
- CFLAGS="$CFLAGS -O"
+ CFLAGS="-O $CFLAGS"
need_asm=true
;;
*-*-linux*)
@@ -63,7 +63,7 @@ else
;;
esac
fi
-CFLAGS="$CFLAGS -DNDEBUG"
+CFLAGS="-DNDEBUG $CFLAGS"
AC_SUBST(PICFLAG)
AC_SUBST(DEFS)