diff options
author | Eric Anholt <[email protected]> | 2012-07-26 09:32:56 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-07-26 17:30:06 -0700 |
commit | 87a1c4f233f597b8b366f7a2c0f1c5b7124d8d8e (patch) | |
tree | 7756a8736ae3d0ff0e7095a830399fc063ae1ba5 /configure.ac | |
parent | 4df2848786d4778a2ce7dbf2e046e191036ccb56 (diff) |
automake: Remove ARCH_FLAGS.
In all current uses, it was appended to CFLAGS, which already had -m32. If
you want to do some other flag supplied to compiler invocations, there's
CFLAGS/CXXFLAGS.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index d9fc29cb9fe..c81d18bb083 100644 --- a/configure.ac +++ b/configure.ac @@ -249,10 +249,7 @@ AC_SUBST([VISIBILITY_CXXFLAGS]) dnl These should be unnecessary, but let the user set them if they want AC_ARG_VAR([OPT_FLAGS], [Additional optimization flags for the compiler. Default is to use CFLAGS.]) -AC_ARG_VAR([ARCH_FLAGS], [Additional architecture specific flags for the - compiler. Default is to use CFLAGS.]) AC_SUBST([OPT_FLAGS]) -AC_SUBST([ARCH_FLAGS]) dnl dnl Hacks to enable 32 or 64 bit build @@ -266,7 +263,6 @@ AC_ARG_ENABLE([32-bit], if test "x$enable_32bit" = xyes; then if test "x$GCC" = xyes; then CFLAGS="$CFLAGS -m32" - ARCH_FLAGS="$ARCH_FLAGS -m32" CCASFLAGS="$CCASFLAGS -m32" fi if test "x$GXX" = xyes; then @@ -2305,9 +2301,9 @@ echo " Static libs: $enable_static" dnl Compiler options # cleanup the CFLAGS/CXXFLAGS/DEFINES vars -cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \ +cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS | \ $SED 's/^ *//;s/ */ /;s/ *$//'` -cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \ +cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS | \ $SED 's/^ *//;s/ */ /;s/ *$//'` defines=`echo $DEFINES | $SED 's/^ *//;s/ */ /;s/ *$//'` echo "" |