svn commit: r239686 - head/share/mk
Dimitry Andric
dim at FreeBSD.org
Sat Aug 25 19:30:16 UTC 2012
Author: dim
Date: Sat Aug 25 19:30:15 2012
New Revision: 239686
URL: http://svn.freebsd.org/changeset/base/239686
Log:
When using -stdlib=libc++, add the correct dependency to .depend in
bsd.prog.mk.
Submitted by: Yamaya Takashi <yamayan at kbh.biglobe.ne.jp>
MFC after: 2 weeks
Modified:
head/share/mk/bsd.prog.mk
Modified: head/share/mk/bsd.prog.mk
==============================================================================
--- head/share/mk/bsd.prog.mk Sat Aug 25 18:08:20 2012 (r239685)
+++ head/share/mk/bsd.prog.mk Sat Aug 25 19:30:15 2012 (r239686)
@@ -126,10 +126,14 @@ _EXTRADEPEND:
.else
echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE}
.if defined(PROG_CXX)
+.if !empty(CXXFLAGS:M-stdlib=libc++)
+ echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
+.else
echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
.endif
.endif
.endif
+.endif
.if !target(install)
More information about the svn-src-all
mailing list