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>
Fri, 3 Oct 2014 01:40:59 +0000 (03:40 +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 4ed43a0..ceaaf17 100755 (executable)
--- a/configure
+++ b/configure
@@ -4528,6 +4528,7 @@ EOF
 fi
 
 check_ldflags -Wl,--as-needed
+check_ldflags -Wl,-z,noexecstack
 
 if check_func dlopen; then
     ldl=