summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-16 16:39:46 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-16 16:39:46 +0000
commitf65ce5d163ea45a4c4734e060968b3b4f5f1f66a (patch)
tree67762b07f6ae51c36ca2779eb3208c2c0133d8d3 /configure
parentcd2dbe5939814168ff91ae728080c432cc8b3fde (diff)
downloadmpv-f65ce5d163ea45a4c4734e060968b3b4f5f1f66a.tar.bz2
mpv-f65ce5d163ea45a4c4734e060968b3b4f5f1f66a.tar.xz
Manually add --nxcompat --no-seh --dynamicbase to linker flags if available,
works around binutils' policy of making exploits as easy as possible by default. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30325 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 0f64bc62ac..97d4f9be63 100755
--- a/configure
+++ b/configure
@@ -8189,6 +8189,14 @@ else
echores "no"
fi
+echocheck "linker support for --nxcompat --no-seh --dynamicbase"
+if cc_check "-Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase" ; then
+ extra_ldflags="-Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase $extra_ldflags"
+ echores "yes"
+else
+ echores "no"
+fi
+
# Dynamic linking flags
# (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)