aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-11-04 21:54:56 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-11-04 21:54:56 +0000
commit756950a1483a3d2d4d1a31876bf7d2fd460d68e4 (patch)
treedd53be8fb9d0efd1f46897e075f5f792fa0663cb /share
parent09d325677d53a12c79a43664ff29871e92247629 (diff)
downloadsrc-756950a1483a3d2d4d1a31876bf7d2fd460d68e4.tar.gz
src-756950a1483a3d2d4d1a31876bf7d2fd460d68e4.zip
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
Notes
Notes: svn path=/head/; revision=257658
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.prog.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 22ddfb538435..2c196d612c1e 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -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