configure: add noexecstack to linker options if supported.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 21 Sep 2014 08:58:10 +0000 (09:58 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 28 Sep 2014 09:01:24 +0000 (10:01 +0100)
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
configure

index 28c735e..f183d30 100755 (executable)
--- a/configure
+++ b/configure
@@ -4621,6 +4621,7 @@ fi
 check_code cc arm_neon.h "int16x8_t test = vdupq_n_s16(0)" && enable intrinsics_neon
 
 check_ldflags -Wl,--as-needed
+check_ldflags -Wl,-z,noexecstack
 
 if check_func dlopen; then
     ldl=