diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-02-22 17:18:57 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-02-22 17:18:57 -0500 |
commit | 610c14ce80ad1a6754a9e2743e6799cf45a093c5 (patch) | |
tree | b2f0bbca15a6041e7deff812a7648e5ad8a5dde0 /configure.ac | |
parent | cea38f1c8c8ff58efa328e4ef5b26818d1b9e707 (diff) | |
download | opus-610c14ce80ad1a6754a9e2743e6799cf45a093c5.tar.gz |
Adding -D_FORTIFY_SOURCE=2 when possible
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index cd5cc899..dbc4ed1c 100644 --- a/configure.ac +++ b/configure.ac @@ -853,6 +853,10 @@ AS_IF([test "$enable_stack_protector" = "yes"], ]) ]) +AS_IF([test x$ac_cv_c_compiler_gnu = xyes], + [AX_ADD_FORTIFY_SOURCE] +) + CFLAGS="$CFLAGS -W" warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" |