Date: Sun, 5 Aug 2018 13:30: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: r476413 - head/Mk Message-ID: <201808051330.w75DUUes029055@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gerald Date: Sun Aug 5 13:30:30 2018 New Revision: 476413 URL: https://svnweb.freebsd.org/changeset/ports/476413 Log: Filter -mretpoline, which is specific to clang and not supported by GCC, from CFLAGS and CXXFLAGS. This also establishes a good place where to add any additional such cases in the future. PR: 230200 Submitted by: rozhuk.im@gmail.com Modified: head/Mk/bsd.gcc.mk Modified: head/Mk/bsd.gcc.mk ============================================================================== --- head/Mk/bsd.gcc.mk Sun Aug 5 13:18:46 2018 (r476412) +++ head/Mk/bsd.gcc.mk Sun Aug 5 13:30:30 2018 (r476413) @@ -166,6 +166,10 @@ CPP:= cpp .endfor .undef V +# Now filter unsupported flags for CC and CXX. +CFLAGS:= ${CFLAGS:N-mretpoline} +CXXFLAGS:= ${CXXFLAGS:N-mretpoline} + .if defined(_GCC_PORT_DEPENDS) BUILD_DEPENDS+= ${_GCC_PORT_DEPENDS}:lang/${_GCC_PORT} RUN_DEPENDS+= ${_GCC_PORT_DEPENDS}:lang/${_GCC_PORT}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808051330.w75DUUes029055>