mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01: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:
parent
cd2dbe5939
commit
f65ce5d163
8
configure
vendored
8
configure
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user