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>
Thu, 12 Mar 2015 17:03:48 +0000 (18:03 +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 23a5174..520631f 100755 (executable)
--- a/configure
+++ b/configure
@@ -2988,6 +2988,7 @@ if enabled asm; then
 fi
 
 check_ldflags -Wl,--as-needed
+check_ldflags -Wl,-z,noexecstack
 
 if check_func dlopen; then
     ldl=