aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2019-03-11 20:11:41 +0800
committergerald <gerald@FreeBSD.org>2019-03-11 20:11:41 +0800
commitd46e61361502a8ecb98b67b29ed7590a9e628e7c (patch)
treeadbfd916b5b4daf5c701c7ba8fb7fb440ec68c5d /lang
parent0d507ae1c0c0558b6adceb5f5aecd331ab1c7fab (diff)
downloadfreebsd-ports-gnome-d46e61361502a8ecb98b67b29ed7590a9e628e7c.tar.gz
freebsd-ports-gnome-d46e61361502a8ecb98b67b29ed7590a9e628e7c.tar.zst
freebsd-ports-gnome-d46e61361502a8ecb98b67b29ed7590a9e628e7c.zip
Update to the 20180310 snapshot of GCC 9.0.1.
Forward port r469788 from lang/gcc6 since apparently people are still using the -mretpoline option that is specific to clang, and gcc9-devel is going to branch into gcc9 in a rew months and that one later the default version of GCC in use: Filter the -mretpoline command-line option, which is understood by recent versions of clang (and used in the context of the Spectre security issues), but not GCC (which uses different options for the same) from CFLAGS and CXXFLAGS. This avoids the build of this port via bootstrap, which is the default and leverages both the system compiler (clang in most cases) plus a just built version GCC, to fail due to the latter not knowing -mretpoline. PR: 228205 Submitted by: rozhuk.im@gmail.com
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc9-devel/Makefile4
-rw-r--r--lang/gcc9-devel/distinfo6
2 files changed, 6 insertions, 4 deletions
diff --git a/lang/gcc9-devel/Makefile b/lang/gcc9-devel/Makefile
index b6e4f171bd90..d9f930f35288 100644
--- a/lang/gcc9-devel/Makefile
+++ b/lang/gcc9-devel/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= gcc
-PORTVERSION= 9.0.1.s20190303
+PORTVERSION= 9.0.1.s20190310
CATEGORIES= lang
MASTER_SITES= GCC/snapshots/${DIST_VERSION}
PKGNAMESUFFIX= ${SUFFIX}-devel
@@ -40,6 +40,8 @@ DIST_VERSION= ${PORTVERSION:C/([0-9]+).*\.s([0-9]+)/\1-\2/}
GCC_VERSION= ${PORTVERSION:C/(.+)\.s[0-9]{8}/\1/}
SUFFIX= ${PORTVERSION:C/([0-9]+).*/\1/}
SSP_UNSAFE= yes
+CFLAGS:= ${CFLAGS:N-mretpoline}
+CXXFLAGS:= ${CXXFLAGS:N-mretpoline}
OPTIONS_DEFINE= BOOTSTRAP GRAPHITE
OPTIONS_DEFAULT= BOOTSTRAP
diff --git a/lang/gcc9-devel/distinfo b/lang/gcc9-devel/distinfo
index dfc8e0b57869..8dec6c73439c 100644
--- a/lang/gcc9-devel/distinfo
+++ b/lang/gcc9-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1551670434
-SHA256 (gcc-9-20190303.tar.xz) = fea721bdf6b8671684409a30ea1ee0aebaf5ead065b7e5882197a8914c0b4c25
-SIZE (gcc-9-20190303.tar.xz) = 68450204
+TIMESTAMP = 1552303178
+SHA256 (gcc-9-20190310.tar.xz) = c08d516212beba122b86d31f128489227451cadb4c34ecf19cfead2315d26310
+SIZE (gcc-9-20190310.tar.xz) = 68480012