mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
[configure.ac.warnings] Add -Wp,-D_FORTIFY_SOURCE=2 to warning flags
It enables various checks in glibc and gcc preprocessor.
This commit is contained in:
parent
54b60dadb9
commit
8ae8189327
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ dnl We also abuse the warning-flag facility to enable other compiler
|
|||
dnl options. Namely, the following:
|
||||
MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing"
|
||||
|
||||
dnl Also to turn various gcc/glibc-specific preprocessor checks
|
||||
MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"
|
||||
|
||||
# invalidate cached value if MAYBE_WARN has changed
|
||||
if test "x$cairo_cv_warn_maybe" != "x$MAYBE_WARN"; then
|
||||
unset cairo_cv_warn_cflags
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue