summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-08-03 07:28:15 +0000
committernia <nia@pkgsrc.org>2021-08-03 07:28:15 +0000
commitbadc433caeaacd2dc9eefb834dcafa9462f23d35 (patch)
treef8be8b8bef9e4bc77f002a8eee8c571ab19f5e1d /mk/compiler
parent5f1c811912ab757e692e1fc825c9a21a19e98d65 (diff)
downloadpkgsrc-badc433caeaacd2dc9eefb834dcafa9462f23d35.tar.gz
clang.mk: add support for PKGSRC_USE_SSP=strong
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/clang.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/compiler/clang.mk b/mk/compiler/clang.mk
index 3956bda314b..c39d2c14e9f 100644
--- a/mk/compiler/clang.mk
+++ b/mk/compiler/clang.mk
@@ -1,4 +1,4 @@
-# $NetBSD: clang.mk,v 1.26 2020/09/21 13:09:21 schmonz Exp $
+# $NetBSD: clang.mk,v 1.27 2021/08/03 07:28:15 nia Exp $
#
# This is the compiler definition for the clang compiler.
#
@@ -65,6 +65,8 @@ _RELRO_LDFLAGS= -Wl,-z,relro -Wl,-z,now
# The user can choose the level of stack smashing protection.
.if ${PKGSRC_USE_SSP} == "all"
_SSP_CFLAGS= -fstack-protector-all
+.elif ${PKGSRC_USE_SSP} == "strong"
+_SSP_CFLAGS= -fstack-protector-strong
.else
_SSP_CFLAGS= -fstack-protector
.endif