automake: Remove OPT_FLAGS.
authorEric Anholt <eric@anholt.net>
Thu, 26 Jul 2012 16:35:36 +0000 (09:35 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 Jul 2012 00:30:06 +0000 (17:30 -0700)
If you want to change your compiler arguments, just set CFLAGS/CXXFLAGS.
Having Mesa have this separate variable is a great way to have your arguments
not thoroughly propagated to all compiler invocations.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
configs/current.in
configure.ac
src/gallium/drivers/r300/Makefile.am
src/gallium/drivers/r600/Makefile.am

index 1840632e7ea07ddf6bfa80741f7428eb1bd7b738..c4f3f4df9b3046ebc08a62c14bcc1bd8c2400968 100644 (file)
@@ -9,15 +9,14 @@ CONFIG_NAME = autoconf
 # Compiler and flags
 CC = @CC@
 CXX = @CXX@
-OPT_FLAGS = @OPT_FLAGS@
 PIC_FLAGS = @PIC_FLAGS@
 DEFINES = @DEFINES@
 API_DEFINES = @API_DEFINES@
 SHARED_GLAPI = @SHARED_GLAPI@
 CFLAGS_NOVISIBILITY = @CPPFLAGS@ @CFLAGS@ \
-       $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES)
+       $(PIC_FLAGS) $(DEFINES)
 CXXFLAGS_NOVISIBILITY = @CPPFLAGS@ @CXXFLAGS@ \
-       $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES)
+       $(PIC_FLAGS) $(DEFINES)
 CFLAGS = $(CFLAGS_NOVISIBILITY) @VISIBILITY_CFLAGS@
 CXXFLAGS = $(CXXFLAGS_NOVISIBILITY) @VISIBILITY_CXXFLAGS@
 LDFLAGS = @LDFLAGS@
index c81d18bb083334c7190fe5ff1204476565dd52c7..47b918720181f24916c4247c6b131fba48b96ccf 100644 (file)
@@ -246,11 +246,6 @@ esac
 AC_SUBST([VISIBILITY_CFLAGS])
 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_SUBST([OPT_FLAGS])
-
 dnl
 dnl Hacks to enable 32 or 64 bit build
 dnl
@@ -2301,9 +2296,9 @@ echo "        Static libs:     $enable_static"
 
 dnl Compiler options
 # cleanup the CFLAGS/CXXFLAGS/DEFINES vars
-cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS | \
+cflags=`echo $CFLAGS $PIC_FLAGS | \
     $SED 's/^ *//;s/  */ /;s/ *$//'`
-cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS | \
+cxxflags=`echo $CXXFLAGS $PIC_FLAGS | \
     $SED 's/^ *//;s/  */ /;s/ *$//'`
 defines=`echo $DEFINES | $SED 's/^ *//;s/  */ /;s/ *$//'`
 echo ""
index ca2b6c06e439d46350e910da9fbbd039f8060738..79b17f6a9475efd8558ed7f746be67e2af532504 100644 (file)
@@ -16,7 +16,6 @@ AM_CFLAGS = \
        $(LLVM_CFLAGS) \
        $(RADEON_CFLAGS) \
        $(DEFINES) \
-       $(OPT_FLAGS) \
        $(PIC_FLAGS)
 
 libr300_a_SOURCES = \
index 65d0dff5dd7c722ce7d3a081af5b7f6d18d48b16..628eaab568584bdcc025f20e8f88f530a3d97040 100644 (file)
@@ -9,7 +9,6 @@ AM_CFLAGS = \
        -I$(top_srcdir)/include \
        $(RADEON_CFLAGS) \
        $(DEFINES) \
-       $(OPT_FLAGS) \
        $(PIC_FLAGS) \
        $(VISIBILITY_CFLAGS)