Date: Sun, 13 May 2018 12:17:59 +0000 (UTC) From: Gerald Pfeifer <gerald@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r469788 - head/lang/gcc6 Message-ID: <201805131217.w4DCHxO9055190@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805131217.w4DCHxO9055190>