Skip to content

Commit

Permalink
libpfct: Fix PIC flag
Browse files Browse the repository at this point in the history
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")

(cherry picked from commit 8403170)
  • Loading branch information
kprovost committed May 7, 2021
1 parent 07baf5f commit 9c23877
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/libnv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/libpfctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ INTERNALLIB= true
SRCS= libpfctl.c
INCS= libpfctl.h

CFLAGS+= -fPIC
CFLAGS+=${PICFLAG}

.include <bsd.lib.mk>

0 comments on commit 9c23877

Please sign in to comment.