Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 09:04:30 +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: r471032 - head/lang/gcc7
Message-ID:  <201805280904.w4S94USN072279@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805280904.w4S94USN072279>