build: Ensure user-set CFLAGS override defaults

For example, the user should be able disable our default -Werror
settings.

https://bugzilla.gnome.org/show_bug.cgi?id=691608
This commit is contained in:
Henrique Dante de Almeida 2013-01-13 12:58:12 -02:00 committed by Colin Walters
parent 1738d5f1ef
commit 0864e3bd6f

View 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