diff options
author | dim <dim@FreeBSD.org> | 2012-08-25 19:30:15 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-08-25 19:30:15 +0000 |
commit | 9d51e542e4246e86d9154ae6930f698e1256d87e (patch) | |
tree | 6282b704ef419307326807d9d12ac2c52c723ed8 /share | |
parent | b4eee9541e5d371d4fbbda29db51fdc8f54620c7 (diff) | |
download | FreeBSD-src-9d51e542e4246e86d9154ae6930f698e1256d87e.zip FreeBSD-src-9d51e542e4246e86d9154ae6930f698e1256d87e.tar.gz |
When using -stdlib=libc++, add the correct dependency to .depend in
bsd.prog.mk.
Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
MFC after: 2 weeks
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.prog.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index fae8366..3c306eb 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -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) |