turns out -fbracket-depth is clang specific, only use it with clang.

This commit is contained in:
Warner Losh 2014-12-09 19:13:27 +00:00
parent c4da59fa74
commit e4b0619c29
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374421
2 changed files with 3 additions and 1 deletions

View file

@ -17,4 +17,6 @@ INSTALL_TARGET+= install-target-libgcc
CONFIGURE_ARGS+= --disable-libstdcxx --disable-multilib
# The following is required for clang to bootstrap gcc.
.if ${COMPILER_TYPE} == clang
MAKE_ARGS+= CXXFLAGS=-fbracket-depth=512
.endif

View file

@ -14,7 +14,7 @@ COMMENT= Cross GNU Compiler Collection for ${PKGNAMEPREFIX:C/-//g}
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
USES= gmake iconv libtool tar:bzip2 makeinfo
USES= gmake iconv libtool tar:bzip2 makeinfo compiler
PLIST_SUB= TARGETARCH=${PKGNAMEPREFIX:C/-//g} \
OPSYS=${OPSYS:tl} \
GCC_TARGET=${GCC_TARGET}