aboutsummaryrefslogtreecommitdiff
path: root/share/mk/atf.test.mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-04 16:28:54 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-04 16:28:54 +0000
commit5551c573554e4bb755565098222d0d74fa83e5cb (patch)
tree5cd31e3767f29d82f87cfe495e4ebad8fb41da45 /share/mk/atf.test.mk
parent98becbfc3c40540968109c02d504fa1bec1adc78 (diff)
downloadsrc-5551c573554e4bb755565098222d0d74fa83e5cb.tar.gz
src-5551c573554e4bb755565098222d0d74fa83e5cb.zip
Rework PRIVATELIB
Now when a lib is marked as PRIVATELIB it is renamed into libprivate$foo instead of being installed in /usr/lib/private and playing with rpath. Also allow to install headers for PRIVATELIBS in that case the headers will be installed in /usr/include/private/$foo Keep the headers under a private namespace to prevent third party build system to easily find them to ensure they are only used on purpose. This allows for non base applications to statically link against a library in base which is linked to a privatelib Treating PRIVATELIBS as regular libraries allows to push them into our current compatX packages if needed. While here finish promotion of libevent as PRIVATELIB Install header for bsdstat and libucl Differential Revision: https://reviews.freebsd.org/D2365 Reviewed by: brooks, des Discussed with: imp
Notes
Notes: svn path=/head/; revision=282420
Diffstat (limited to 'share/mk/atf.test.mk')
-rw-r--r--share/mk/atf.test.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/share/mk/atf.test.mk b/share/mk/atf.test.mk
index 08632037de22..dffd4665b847 100644
--- a/share/mk/atf.test.mk
+++ b/share/mk/atf.test.mk
@@ -72,11 +72,10 @@ MAN.${_T}?= # empty
SRCS.${_T}?= ${_T}.c
DPADD.${_T}+= ${LIBATF_C}
.if empty(LDFLAGS:M-static) && empty(LDFLAGS.${_T}:M-static)
-LDADD.${_T}+= ${LDATF_C}
+LDADD.${_T}+= ${LDADD_atf_c}
.else
LDADD.${_T}+= ${LIBATF_C}
.endif
-USEPRIVATELIB+= atf-c
TEST_INTERFACE.${_T}= atf
.endfor
.endif
@@ -90,11 +89,10 @@ MAN.${_T}?= # empty
SRCS.${_T}?= ${_T}${CXX_SUFFIX:U.cc}
DPADD.${_T}+= ${LIBATF_CXX} ${LIBATF_C}
.if empty(LDFLAGS:M-static) && empty(LDFLAGS.${_T}:M-static)
-LDADD.${_T}+= ${LDATF_CXX} ${LDATF_C}
+LDADD.${_T}+= ${LDADD_atf_cxx} ${LDADD_atf_c}
.else
LDADD.${_T}+= ${LIBATF_CXX} ${LIBATF_C}
.endif
-USEPRIVATELIB+= atf-c++
TEST_INTERFACE.${_T}= atf
.endfor
.endif