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, 21 Dec 2014 03:40:03 +0000 (04:40 +0100)
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 96703ec..c5ccd3e 100755 (executable)
--- a/configure
+++ b/configure
@@ -3691,6 +3691,7 @@ EOF
 fi
 
 check_ldflags -Wl,--as-needed
+check_ldflags -Wl,-z,noexecstack
 
 if check_func dlopen; then
     ldl=