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:
Dimitry Andric 2013-11-04 21:54:56 +00:00
parent 09d325677d
commit 756950a148
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257658

View file

@ -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