aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-03-17 15:16:36 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-03-17 15:16:36 +0000
commit215d02b78ca9d16dfcf9cea2bff3f4d1d3f14cd2 (patch)
tree61013e6d5d3cfc9758b3a99272f07e478122acd1 /Makefile.inc1
parent7e8ffa29c714d58f586d6be4b11966eddbbb608e (diff)
downloadsrc-215d02b78ca9d16dfcf9cea2bff3f4d1d3f14cd2.tar.gz
src-215d02b78ca9d16dfcf9cea2bff3f4d1d3f14cd2.zip
Add LIB_CXX so that C++ libraries will use CXX to link.
This fixes C++ libraries not implicitly linking in libc++. This is generally not an issue because the final linking with the compiled binary will involve CXX via PROG_CXX or other means. It is however inconsistent with libraries implicitly linking in libc and problematic for trying to build libraries with '-z defs' to ensure all direct dependencies are linked in. libatf-c++ is currently the only consumer of this new feature. Differential Revision: https://reviews.freebsd.org/D2039 Reviewed by: imp Discussed with: bapt MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=280179
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc14
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 97b5b7b23dde..690696b2d505 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1685,6 +1685,10 @@ gnu/lib/libstdc++__L: lib/msun__L
gnu/lib/libsupc++__L: gnu/lib/libstdc++__L
.endif
+.if ${MK_LIBCPLUSPLUS} != "no"
+_prebuild_libs+= lib/libc++
+.endif
+
lib/libgeom__L: lib/libexpat__L
.if ${MK_LIBTHR} != "no"