Skip to content

Commit

Permalink
libnv: Build PIC
Browse files Browse the repository at this point in the history
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

(cherry picked from commit 0dd13c7)
  • Loading branch information
kprovost committed May 7, 2021
1 parent ad208b0 commit 259e524
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/libnv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SHLIB_MAJOR= 0

.PATH: ${SRCTOP}/sys/contrib/libnv ${SRCTOP}/sys/sys
CFLAGS+=-I${.CURDIR}
CFLAGS+=-fPIC

SRCS= cnvlist.c
SRCS+= dnvlist.c
Expand Down

0 comments on commit 259e524

Please sign in to comment.