mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
Set stack non-executable where supported.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15605 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
46630a96a9
commit
61df87b528
11
configure
vendored
11
configure
vendored
@ -6728,6 +6728,17 @@ else
|
||||
echores "only used for x86"
|
||||
fi
|
||||
|
||||
echocheck "compiler support for noexecstack"
|
||||
cat > $TMPC <<EOF
|
||||
int main(void) { return 0; }
|
||||
EOF
|
||||
if cc_check -Wl,-z,noexecstack ; then
|
||||
_ld_extra="-Wl,-z,noexecstack $_ld_extra"
|
||||
echores "yes"
|
||||
else
|
||||
echores "no"
|
||||
fi
|
||||
|
||||
echocheck "ftello()"
|
||||
# if we don't have ftello use the osdep/ compatibility module
|
||||
cat > $TMPC << EOF
|
||||
|
Loading…
Reference in New Issue
Block a user