Commit 60baa958 authored by Geoff Simmons's avatar Geoff Simmons

bugfix configure.ac for disabling the stack protector

parent 4afd1167
...@@ -158,16 +158,19 @@ DEVELOPER_CLANG_CFLAGS="-Wmissing-variable-declarations -Wno-string-plus-int" ...@@ -158,16 +158,19 @@ DEVELOPER_CLANG_CFLAGS="-Wmissing-variable-declarations -Wno-string-plus-int"
# --enable-stack-protector # --enable-stack-protector
AC_ARG_ENABLE(stack-protector, AC_ARG_ENABLE(stack-protector,
AS_HELP_STRING([--enable-stack-protector],[enable stack protector (default is YES)]), AS_HELP_STRING([--enable-stack-protector],
[enable stack protector (default is YES)]),
[], [],
[enable_stack_protector=yes]) [enable_stack_protector=yes])
if test "x$enable_stack_protector" != "xno"; then AS_IF([test "x$enable_stack_protector" != xno],
AX_CHECK_COMPILE_FLAG([-fstack-protector], [
AX_CHECK_LINK_FLAG([-fstack-protector], AX_CHECK_COMPILE_FLAG([-fstack-protector],
[DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} -fstack-protector"], [], []), AX_CHECK_LINK_FLAG([-fstack-protector],
[], []) [DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} -fstack-protector"],
fi [], [])
[], [])
], [])
# --enable-developer-warnings # --enable-developer-warnings
# cf. Varnish configure.ac, which checks compile flags more carefully # cf. Varnish configure.ac, which checks compile flags more carefully
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment