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)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 28 Sep 2014 10:11:22 +0000 (12:11 +0200)
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
(cherry picked from commit b7082d953fda93f7841ffffe7d15a6c3cd15bdee)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 025941f..dc1c3b6 100755 (executable)
--- a/configure
+++ b/configure
@@ -3750,6 +3750,7 @@ EOF
 fi
 
 check_ldflags -Wl,--as-needed
+check_ldflags -Wl,-z,noexecstack
 
 if check_func dlopen; then
     ldl=