svn commit: r469788 - head/lang/gcc6

Gerald Pfeifer gerald at FreeBSD.org
Sun May 13 12:18:00 UTC 2018


Author: gerald
Date: Sun May 13 12:17:59 2018
New Revision: 469788
URL: https://svnweb.freebsd.org/changeset/ports/469788

Log:
  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/gcc6/Makefile

Modified: head/lang/gcc6/Makefile
==============================================================================
--- head/lang/gcc6/Makefile	Sun May 13 11:33:47 2018	(r469787)
+++ head/lang/gcc6/Makefile	Sun May 13 12:17:59 2018	(r469788)
@@ -37,6 +37,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_DEFINE_i386=	JAVA


More information about the svn-ports-head mailing list