Date: Sun, 18 Oct 2020 09:07:43 +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: r552624 - head/lang/gcc48 Message-ID: <202010180907.09I97hPT062901@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gerald Date: Sun Oct 18 09:07:43 2020 New Revision: 552624 URL: https://svnweb.freebsd.org/changeset/ports/552624 Log: Remove -march=westmere from CFLAGS and CXXFLAGS if present since this old version of GCC (end of life for more than five years) does not yet support the Intel Westmere architecture. [1] This avoids breaking users who set a global CPUTYPE to westmere. While here, backport r469788 from lang/gcc6: [2] 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: 250263 [1], 228205 [2] Reported by: Patrick McMunn <doctorwhoguy@gmail.com> [1] Submitted by: rozhuk.im@gmail.com [2] Modified: head/lang/gcc48/Makefile Modified: head/lang/gcc48/Makefile ============================================================================== --- head/lang/gcc48/Makefile Sun Oct 18 09:04:04 2020 (r552623) +++ head/lang/gcc48/Makefile Sun Oct 18 09:07:43 2020 (r552624) @@ -35,6 +35,8 @@ USES= compiler cpe gmake iconv libtool makeinfo perl5 USE_BINUTILS= yes USE_PERL5= build SSP_UNSAFE= yes +CFLAGS:= ${CFLAGS:N-march=westmere:N-mretpoline} +CXXFLAGS:= ${CXXFLAGS:N-march=westmere:N-mretpoline} OPTIONS_DEFINE= BOOTSTRAP OPTIONS_DEFAULT= BOOTSTRAP
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010180907.09I97hPT062901>