External compiler: Remove redundant flags from CXXFLAGS.
The use of XCXXFLAGS is to assign it to CXX in CROSSENV. XCFLAGS is also assigned here so there is no need to have --syroot and -B flags again. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
d63cb012ba
commit
5df2c3ccc4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297278
@ -448,12 +448,10 @@ TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-${TARGET_ABI}-freebsd11.0
|
||||
XCFLAGS+= -target ${TARGET_TRIPLE}
|
||||
.endif
|
||||
XCFLAGS+= --sysroot=${WORLDTMP} ${BFLAGS}
|
||||
XCXXFLAGS+= --sysroot=${WORLDTMP} ${BFLAGS}
|
||||
.else
|
||||
.if defined(CROSS_BINUTILS_PREFIX) && exists(${CROSS_BINUTILS_PREFIX})
|
||||
BFLAGS+= -B${CROSS_BINUTILS_PREFIX}
|
||||
XCFLAGS+= ${BFLAGS}
|
||||
XCXXFLAGS+= ${BFLAGS}
|
||||
.endif
|
||||
.endif # ${XCC:M/*} || ${MK_CROSS_COMPILER} == "no"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user