summaryrefslogtreecommitdiff
path: root/mk/tools/tools.NetBSD.mk
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2016-05-26 16:03:04 +0000
committerkhorben <khorben@pkgsrc.org>2016-05-26 16:03:04 +0000
commitb8a2d91a8eb92f1e4004213b661e5f8dfee277c9 (patch)
tree8d5ea313247a56aff1ea5f7f5d7954b5f9ea3883 /mk/tools/tools.NetBSD.mk
parent6bf9f8249f45f2884b33af3c9df591ced7f217f5 (diff)
downloadpkgsrc-b8a2d91a8eb92f1e4004213b661e5f8dfee277c9.tar.gz
Import mini-framework for paxctl(8) on NetBSD/{amd64,i386}
This allows setting flags for PaX on select binaries. Two new variables are introduced for packages: NOT_PAX_ASLR_SAFE and NOT_PAX_MPROTECT_SAFE. They both expect a list of binaries are known to not support PaX ASLR and/or PaX MPROTECT, respectively. "Please commit" wiz@
Diffstat (limited to 'mk/tools/tools.NetBSD.mk')
-rw-r--r--mk/tools/tools.NetBSD.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/tools/tools.NetBSD.mk b/mk/tools/tools.NetBSD.mk
index 188cd5677a9..063d06cc4e3 100644
--- a/mk/tools/tools.NetBSD.mk
+++ b/mk/tools/tools.NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: tools.NetBSD.mk,v 1.57 2015/09/08 11:36:34 jperkin Exp $
+# $NetBSD: tools.NetBSD.mk,v 1.58 2016/05/26 16:03:04 khorben Exp $
#
# System-supplied tools for the NetBSD operating system.
@@ -83,6 +83,10 @@ TOOLS_PLATFORM.nroff?= /usr/bin/nroff
TOOLS_PLATFORM.openssl?= /usr/bin/openssl
TOOLS_PLATFORM.patch?= /usr/bin/patch
TOOLS_PLATFORM.pax?= /bin/pax
+.if empty(MACHINE_PLATFORM:MNetBSD-[^0-3].*-386) || \
+ empty(MACHINE_PLATFORM:MNetBSD-[^0-3].*-x86_64)
+TOOLS_PLATFORM.paxctl?= /usr/sbin/paxctl
+.endif
TOOLS_PLATFORM.printf?= /usr/bin/printf
TOOLS_PLATFORM.pwd?= /bin/pwd
.if empty(USE_CROSS_COMPILE:M[yY][eE][sS])