Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler mk/compiler: Fix version check for GCC 10
details: https://anonhg.NetBSD.org/pkgsrc/rev/eb3e2207028f
branches: trunk
changeset: 433104:eb3e2207028f
user: sjmulder <sjmulder%pkgsrc.org@localhost>
date: Sat May 30 22:45:36 2020 +0000
description:
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:
mk/compiler/gcc.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 090c225767e2 -r eb3e2207028f mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Sat May 30 22:45:07 2020 +0000
+++ b/mk/compiler/gcc.mk Sat May 30 22:45:36 2020 +0000
@@ -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 @@
.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"
Home |
Main Index |
Thread Index |
Old Index