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:
dim 2013-11-04 21:54:56 +00:00
parent 3d7ba62a0b
commit fca50c96f2

View File

@ -172,7 +172,7 @@ _EXTRADEPEND:
.endif .endif
.else .else
echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE} 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++) .if ${MK_CLANG_IS_CC} != "no" && empty(CXXFLAGS:M-stdlib=libstdc++)
echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE} echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
.else .else