libpfct: Fix PIC flag

Use ${PICFLAG} rather than hard-adding -fPIC, which removes the
requirement for libnv to be built PIC.

MFC after:      4 weeks
Sponsored by:   Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost 2021-04-16 21:00:51 +02:00
parent e81b14633b
commit 8403170b3d
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -7,6 +7,6 @@ INTERNALLIB= true
SRCS= libpfctl.c
INCS= libpfctl.h
CFLAGS+= -fPIC
CFLAGS+=${PICFLAG}
.include <bsd.lib.mk>