summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2015-07-27 23:37:38 +0000
committerkhorben <khorben@pkgsrc.org>2015-07-27 23:37:38 +0000
commit090f645fe3f3a9365b24f06c70d74ea6ad360d62 (patch)
tree0bbe511551f5c32b99fc242c5d0f223dda4c719d /mk
parentab094a252d4545c8194e93e64a0a8b5a2a32941c (diff)
downloadpkgsrc-090f645fe3f3a9365b24f06c70d74ea6ad360d62.tar.gz
More efficient check if SSP is enabled
With this change, the check if the current architecture is supported is only performed if SSP is enabled in the first place. This should not change the current behavior; tested on NetBSD/amd64. Suggested by wiz@
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/NetBSD.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk
index 8a0cda4dd43..f771006e238 100644
--- a/mk/platform/NetBSD.mk
+++ b/mk/platform/NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.43 2015/07/26 22:13:17 khorben Exp $
+# $NetBSD: NetBSD.mk,v 1.44 2015/07/27 23:37:38 khorben Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -128,11 +128,11 @@ FFLAGS+= -mieee
PKG_HAVE_KQUEUE= # defined
.endif
-.if (${MACHINE_ARCH} != "alpha") && \
+.if ${PKGSRC_USE_SSP:Uno} != "no"
+. if (${MACHINE_ARCH} != "alpha") && \
(${MACHINE_ARCH} != "hppa") && \
(${MACHINE_ARCH} != "ia64") && \
(${MACHINE_ARCH} != "mips")
-. if ${PKGSRC_USE_SSP:Uno} != "no"
# build with stack protection (with GCC)
_GCC_CFLAGS+= -fstack-protector
. endif