[build] Add -fno-common.

Generate a warning if two files define a global variable with the same
name, instead of silently merging them to reference the same location.
This commit is contained in:
Chris Wilson 2008-10-15 22:27:53 +01:00
parent b94b600b34
commit 91b0dc92c8

View file

@ -17,7 +17,7 @@ MAYBE_WARN="-Wall -Wextra \
dnl We also abuse the warning-flag facility to enable other compiler
dnl options. Namely, the following:
MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing"
MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"
dnl Also to turn various gcc/glibc-specific preprocessor checks
MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"