svn commit: r298082 - head/share/mk
Bryan Drewery
bdrewery at FreeBSD.org
Fri Apr 15 18:43:55 UTC 2016
Author: bdrewery
Date: Fri Apr 15 18:43:54 2016
New Revision: 298082
URL: https://svnweb.freebsd.org/changeset/base/298082
Log:
Add SHLIB_CXX to allow building a C++ shared library without a static one.
Submitted by: ngie
Sponsored by: EMC / Isilon Storage Division
Modified:
head/share/mk/bsd.lib.mk
Modified: head/share/mk/bsd.lib.mk
==============================================================================
--- head/share/mk/bsd.lib.mk Fri Apr 15 18:42:10 2016 (r298081)
+++ head/share/mk/bsd.lib.mk Fri Apr 15 18:43:54 2016 (r298082)
@@ -4,12 +4,17 @@
.include <bsd.init.mk>
-.if defined(LIB_CXX)
-LIB= ${LIB_CXX}
+.if defined(LIB_CXX) || defined(SHLIB_CXX)
_LD= ${CXX}
.else
_LD= ${CC}
.endif
+.if defined(LIB_CXX)
+LIB= ${LIB_CXX}
+.endif
+.if defined(SHLIB_CXX)
+SHLIB= ${SHLIB_CXX}
+.endif
LIB_PRIVATE= ${PRIVATELIB:Dprivate}
# Set up the variables controlling shared libraries. After this section,
More information about the svn-src-head
mailing list