pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/compiler
Module Name: pkgsrc
Committed By: jperkin
Date: Mon Sep 11 09:06:41 UTC 2017
Modified Files:
pkgsrc/mk/compiler: gcc.mk
Log Message:
Limit GCC SSP support to 4.x and newer.
To generate a diff of this commit:
cvs rdiff -u -r1.183 -r1.184 pkgsrc/mk/compiler/gcc.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/compiler/gcc.mk
diff -u pkgsrc/mk/compiler/gcc.mk:1.183 pkgsrc/mk/compiler/gcc.mk:1.184
--- pkgsrc/mk/compiler/gcc.mk:1.183 Fri Aug 25 01:43:17 2017
+++ pkgsrc/mk/compiler/gcc.mk Mon Sep 11 09:06:41 2017
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.183 2017/08/25 01:43:17 khorben Exp $
+# $NetBSD: gcc.mk,v 1.184 2017/09/11 09:06:41 jperkin Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -372,12 +372,14 @@ CWRAPPERS_APPEND.ld+= ${_RELRO_LDFLAGS}
.endif
# The user can choose the level of stack smashing protection.
-.if ${PKGSRC_USE_SSP} == "all"
+.if ${_GCC_VERSION:C/\..*$//} >= 4
+. if ${PKGSRC_USE_SSP} == "all"
_SSP_CFLAGS= -fstack-protector-all
-.elif ${PKGSRC_USE_SSP} == "strong"
+. elif ${PKGSRC_USE_SSP} == "strong"
_SSP_CFLAGS= -fstack-protector-strong
-.else
+. else
_SSP_CFLAGS= -fstack-protector
+. endif
.endif
_STACK_CHECK_CFLAGS= -fstack-check
Home |
Main Index |
Thread Index |
Old Index