diff options
author | sjmulder <sjmulder@pkgsrc.org> | 2020-05-30 22:45:36 +0000 |
---|---|---|
committer | sjmulder <sjmulder@pkgsrc.org> | 2020-05-30 22:45:36 +0000 |
commit | c3bcd3039becc7f3977198043dbaaf330a7fa212 (patch) | |
tree | b048022760c3c32eddbe32b2e9622f350147806a /mk | |
parent | 7e2e413dcb0c6c5765719d59272d067a1b39eec1 (diff) | |
download | pkgsrc-c3bcd3039becc7f3977198043dbaaf330a7fa212.tar.gz |
mk/compiler: Fix version check for GCC 10
Caused SSP flags to be omitted in GCC 10. Check flipped because all new
GCC versions can be expected to support it.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/compiler/gcc.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index 72bfb064cbd..54c5cb6e400 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.210 2020/03/30 09:39:24 nia Exp $ +# $NetBSD: gcc.mk,v 1.211 2020/05/30 22:45:36 sjmulder Exp $ # # This is the compiler definition for the GNU Compiler Collection. # @@ -976,7 +976,7 @@ CC_VERSION= ${_GCC_PKG} .endif # The user can choose the level of stack smashing protection. -.if !empty(CC_VERSION:Mgcc-[4-9]*) +.if empty(CC_VERSION:Mgcc-[1-3].*) . if ${PKGSRC_USE_SSP} == "all" _SSP_CFLAGS= -fstack-protector-all . elif ${PKGSRC_USE_SSP} == "strong" |