aboutsummaryrefslogtreecommitdiff
path: root/tools/bsdbox/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bsdbox/Makefile')
-rw-r--r--tools/bsdbox/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/bsdbox/Makefile b/tools/bsdbox/Makefile
index a164ddf54cbd..35e37b31ea2f 100644
--- a/tools/bsdbox/Makefile
+++ b/tools/bsdbox/Makefile
@@ -2,6 +2,7 @@ MAN=
.include <bsd.own.mk>
MK_SSP= no
+MK_PIE= no
PROG= bsdbox
BINDIR?=/sbin
@@ -52,7 +53,7 @@ CRUNCH_SRCDIRS+= bin
# setuid binaries - they use these libraries. PAM needs to be
# built dynamically or it tries to build _all_ of the modules
# statically - and that ends very badly.
-CRUNCH_SHLIBS+= -lc -lutil -lcrypt -lxo -lgpio
+CRUNCH_SHLIBS+= -lc -lsys -lutil -lcrypt -lxo -lgpio
CRUNCH_LIBS+= -lkvm -lmemstat -lnetgraph
CRUNCH_LIBS+= -lcrypt -ledit -ltermcapw
@@ -69,7 +70,7 @@ CRUNCH_SRCDIRS+= sbin
CRUNCH_LIBS+= -l80211 -lalias -lcam -lcursesw -ldevstat -lipsec
# Don't forget this - ifconfig, etc -adrian
-CRUNCH_LIBS+= ${LDADD_ifconfig}
+CRUNCH_LIBS+= ${OBJTOP}/lib/libifconfig/libifconfig.a
CRUNCH_LIBS+= -lgeom -lbsdxml -ljail -lkiconv -lmd -lsbuf -lufs
CRUNCH_BUILDOPTS+= CRUNCH_CFLAGS+=-I${OBJTOP}/lib/libifconfig