mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 12:18:01 +02:00
[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:
parent
b94b600b34
commit
91b0dc92c8
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue