svn commit: r476413 - head/Mk
Gerald Pfeifer
gerald at FreeBSD.org
Sun Aug 5 13:30:31 UTC 2018
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 at 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}
More information about the svn-ports-all
mailing list