build: Ensure user-set CFLAGS override defaults
authorHenrique Dante de Almeida <hdante@gmail.com>
Sun, 13 Jan 2013 14:58:12 +0000 (12:58 -0200)
committerColin Walters <walters@verbum.org>
Sun, 13 Jan 2013 15:47:25 +0000 (10:47 -0500)
For example, the user should be able disable our default -Werror
settings.

https://bugzilla.gnome.org/show_bug.cgi?id=691608

configure.ac

index b7d5d45..5cb21df 100644 (file)
@@ -3573,7 +3573,7 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
    -Werror=missing-prototypes -Werror=implicit-function-declaration \
    -Werror=pointer-arith -Werror=init-self -Werror=format-security \
    -Werror=format=2 -Werror=missing-include-dirs])
-CFLAGS="$CFLAGS $with_cflags"
+CFLAGS="$with_cflags $CFLAGS"
 
 #
 # Define variables corresponding to the correct include paths to use for