summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-01 09:08:15 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-01 09:08:15 +0000
commit61df87b52893f0abad97abb2eba912f109bce8e8 (patch)
treeeb40e3d8e9ff18842ad9c12b9ea8c0fad571b07e /configure
parent46630a96a93494178f58f838337944313605966a (diff)
downloadmpv-61df87b52893f0abad97abb2eba912f109bce8e8.tar.bz2
mpv-61df87b52893f0abad97abb2eba912f109bce8e8.tar.xz
Set stack non-executable where supported.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15605 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 94c600a0d7..fe1f113e55 100755
--- a/configure
+++ b/configure
@@ -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