1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

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
This commit is contained in:
reimar 2010-01-16 16:39:46 +00:00
parent cd2dbe5939
commit f65ce5d163

8
configure vendored
View File

@ -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)