From 0c9fb4783481ece6b9052e2854439d6851eac5cb Mon Sep 17 00:00:00 2001 From: dim Date: Thu, 7 Nov 2013 20:54:52 +0000 Subject: [PATCH] [PATCH] MFC r257658: 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. --- share/mk/bsd.prog.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index f4a949ee..9643482b 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -168,7 +168,7 @@ _EXTRADEPEND: .endif .else echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE} -.if defined(PROG_CXX) +.if defined(PROG_CXX) && !defined(EARLY_BUILD) .if !empty(CXXFLAGS:M-stdlib=libc++) echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE} .else -- 2.45.0