diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-16 16:39:46 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-16 16:39:46 +0000 |
commit | f65ce5d163ea45a4c4734e060968b3b4f5f1f66a (patch) | |
tree | 67762b07f6ae51c36ca2779eb3208c2c0133d8d3 /configure | |
parent | cd2dbe5939814168ff91ae728080c432cc8b3fde (diff) | |
download | mpv-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-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |