svn commit: r471032 - head/lang/gcc7
Gerald Pfeifer
gerald at FreeBSD.org
Mon May 28 09:04:31 UTC 2018
Author: gerald
Date: Mon May 28 09:04:30 2018
New Revision: 471032
URL: https://svnweb.freebsd.org/changeset/ports/471032
Log:
Forward port r469788 from lang/gcc6:
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 at gmail.com
Modified:
head/lang/gcc7/Makefile
Modified: head/lang/gcc7/Makefile
==============================================================================
--- head/lang/gcc7/Makefile Mon May 28 09:04:17 2018 (r471031)
+++ head/lang/gcc7/Makefile Mon May 28 09:04:30 2018 (r471032)
@@ -36,6 +36,8 @@ USES= compiler cpe gmake iconv libtool makeinfo perl5
USE_BINUTILS= yes
USE_PERL5= build
SSP_UNSAFE= yes
+CFLAGS:= ${CFLAGS:N-mretpoline}
+CXXFLAGS:= ${CXXFLAGS:N-mretpoline}
OPTIONS_DEFINE= BOOTSTRAP GRAPHITE
OPTIONS_DEFAULT= BOOTSTRAP
More information about the svn-ports-head
mailing list