summaryrefslogtreecommitdiff
path: root/mk/check/bsd.check-vars.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/check/bsd.check-vars.mk')
-rw-r--r--mk/check/bsd.check-vars.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/mk/check/bsd.check-vars.mk b/mk/check/bsd.check-vars.mk
index d7cc59e24fe..053c51adcfd 100644
--- a/mk/check/bsd.check-vars.mk
+++ b/mk/check/bsd.check-vars.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.check-vars.mk,v 1.8 2015/08/17 17:35:23 jperkin Exp $
+# $NetBSD: bsd.check-vars.mk,v 1.9 2017/07/04 18:29:24 khorben Exp $
#
# This Makefile fragment is included separately by bsd.pkg.mk and
# defines some variables which must be defined earlier than where
@@ -6,8 +6,17 @@
#
CHECK_FILES_SUPPORTED?= yes
+CHECK_RELRO_SUPPORTED?= yes
CHECK_SHLIBS_SUPPORTED?= yes
+_OPSYS_CAN_CHECK_RELRO?= ${_OPSYS_CAN_CHECK_SHLIBS}
+
+.if ${_OPSYS_CAN_CHECK_RELRO:tl} == "yes"
+_USE_CHECK_RELRO_NATIVE= yes
+.else
+_USE_CHECK_RELRO_NATIVE= no
+.endif
+
.if ${_OPSYS_CAN_CHECK_SHLIBS:tl} == "yes"
_USE_CHECK_SHLIBS_NATIVE= yes
.else