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:
parent
05f3295424
commit
f3ce3b9d7b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=476413
1 changed files with 4 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue