Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-02-23 01:18:57 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-02-23 01:18:57 +0300
commit610c14ce80ad1a6754a9e2743e6799cf45a093c5 (patch)
treeb2f0bbca15a6041e7deff812a7648e5ad8a5dde0 /configure.ac
parentcea38f1c8c8ff58efa328e4ef5b26818d1b9e707 (diff)
Adding -D_FORTIFY_SOURCE=2 when possible
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
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"