configure.ac: Don't duplicate CFLAGS
authorMatt Turner <mattst88@gmail.com>
Wed, 1 Aug 2012 15:38:35 +0000 (08:38 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 1 Aug 2012 17:12:50 +0000 (10:12 -0700)
These assignments caused CFLAGS specified on the configure line to
appear twice in the final CFLAGS. Removing them makes the behavior
reasonable -- USER_CFLAGS are appended at the end of CFLAGS, allowing
the builder to override flags added by configure.ac like
-fno-strict-aliasing.

Reviewed-by: Adam Jackson <ajax@redhat.com>
configure.ac

index 87fb859..2b5abb4 100644 (file)
@@ -26,10 +26,6 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 LT_PREREQ([2.2])
 LT_INIT([disable-static])
 
-dnl Save user CFLAGS and CXXFLAGS so one can override the default ones
-USER_CFLAGS="$CFLAGS"
-USER_CXXFLAGS="$CXXFLAGS"
-
 dnl Versions for external dependencies
 LIBDRM_REQUIRED=2.4.24
 LIBDRM_RADEON_REQUIRED=2.4.31