Date: Fri, 15 Apr 2016 18:43:54 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298082 - head/share/mk Message-ID: <201604151843.u3FIhsKV040819@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604151843.u3FIhsKV040819>