For C++ programs, don't emit any explicit dependency to libstdc++.a or
libc++.a during the early build stages (bootstrap-tools, build-tools, cross-tools), since it is not possible to know in advance which C++ library is available on the host system. Instead, just use the bootstrap compiler's built-in default. This should eventually make it possible to build stable/9 on head, or on stable/10, which ship without libstdc++ by default. X-MFC-With: 255431 MFC after: 3 days
This commit is contained in:
parent
09d325677d
commit
756950a148
@ -172,7 +172,7 @@ _EXTRADEPEND:
|
||||
.endif
|
||||
.else
|
||||
echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE}
|
||||
.if defined(PROG_CXX)
|
||||
.if defined(PROG_CXX) && !defined(EARLY_BUILD)
|
||||
.if ${MK_CLANG_IS_CC} != "no" && empty(CXXFLAGS:M-stdlib=libstdc++)
|
||||
echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
|
||||
.else
|
||||
|
Loading…
Reference in New Issue
Block a user