libnv: Build PIC

Build libnv as position independent code so we can use it from shared
libraries.

MFC after:	4 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D29561
This commit is contained in:
Kristof Provost 2021-04-02 17:06:02 +02:00
parent 0d6c8174ef
commit 0dd13c7743

View File

@ -10,6 +10,7 @@ SHLIB_MAJOR= 0
.PATH: ${SRCTOP}/sys/contrib/libnv ${SRCTOP}/sys/sys .PATH: ${SRCTOP}/sys/contrib/libnv ${SRCTOP}/sys/sys
CFLAGS+=-I${.CURDIR} CFLAGS+=-I${.CURDIR}
CFLAGS+=-fPIC
SRCS= cnvlist.c SRCS= cnvlist.c
SRCS+= dnvlist.c SRCS+= dnvlist.c