aboutsummaryrefslogtreecommitdiff
path: root/lib/libnv/Makefile
diff options
context:
space:
mode:
authorReid Linnemann <rlinnemann@netgate.com>2022-05-17 19:49:41 +0000
committerKristof Provost <kp@FreeBSD.org>2022-07-21 16:35:23 +0000
commit000321bab7bea3530408b960095a6ea241451175 (patch)
treee58b866e4b3c546207767249f1d43a4234f472a0 /lib/libnv/Makefile
parentfb8ef16bab0d23e185deed5a6b2e44e72ad53d43 (diff)
namespace nv names, version libnv and libnvpair library symbols
libnv and libnvpair have aliased symbols, and as a result a single process which dlopens a shared object that is dynamically linked to libnv and another to libnvpair will wind up with a single set of resolved symbols for those in conflict. A source file also cannot include both libnv and libnvpair headers because of aliased identifiers. To resolve the situation, libnv types and functions are namespaced via nv_namespace.h, and libnv symbols are versioned. The msgio functions are not namespaced or exported as they are not part of the external API. Reviewed by: kevans Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D35261
Diffstat (limited to 'lib/libnv/Makefile')
-rw-r--r--lib/libnv/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libnv/Makefile b/lib/libnv/Makefile
index b13758931c4e..933dacb3eac6 100644
--- a/lib/libnv/Makefile
+++ b/lib/libnv/Makefile
@@ -8,6 +8,9 @@ PACKAGE= runtime
LIB= nv
SHLIB_MAJOR= 0
+VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def
+VERSION_MAP= ${.CURDIR}/Version.map
+
.PATH: ${SRCTOP}/sys/contrib/libnv ${SRCTOP}/sys/sys
CFLAGS+=-I${.CURDIR}