stdenv: Move paxmark function to paxctl's setup hook

This commit is contained in:
Eelco Dolstra
2014-08-09 12:44:50 +02:00
parent d7b356f73b
commit 9f822e5477
5 changed files with 16 additions and 22 deletions
+3 -16
View File
@@ -337,22 +337,9 @@ fi
export NIX_BUILD_CORES
######################################################################
# Misc. helper functions.
# PaX-mark binaries
paxmark() {
local flags="$1"
shift
if [ -z "@needsPax@" ]; then
return
fi
paxctl -c "$@"
paxctl -zex -${flags} "$@"
}
# Dummy implementation of the paxmark function. On Linux, this is
# overwritten by paxctl's setup hook.
paxmark() { true; }
######################################################################