1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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
This commit is contained in:
Gerald Pfeifer 2018-08-05 13:30:30 +00:00
parent 05f3295424
commit f3ce3b9d7b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=476413

View File

@ -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}