summaryrefslogtreecommitdiff
path: root/usr/src/cmd/bhyve/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/bhyve/Makefile')
-rw-r--r--usr/src/cmd/bhyve/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/cmd/bhyve/Makefile b/usr/src/cmd/bhyve/Makefile
index 554603d4f8..a8c772c7f8 100644
--- a/usr/src/cmd/bhyve/Makefile
+++ b/usr/src/cmd/bhyve/Makefile
@@ -83,7 +83,7 @@ OBJS = $(SRCS:.c=.o)
CLOBBERFILES = $(ROOTUSRSBINPROG) $(ZHYVE)
ZHYVE_DIR = $(ROOT)/usr/lib/brand/bhyve
-ZHYVE_PROG = zhyve
+ZHYVE_PROG = zhyve
ZHYVE = $(ZHYVE_DIR)/$(ZHYVE_PROG)
MEVENT_TEST_PROG = mevent_test
@@ -109,9 +109,9 @@ CPPFLAGS = -I$(COMPAT)/freebsd -I$(CONTRIB)/freebsd \
# Disable the crypto code until it is wired up
CPPFLAGS += -DNO_OPENSSL
-LDLIBS += -lsocket -lnsl -ldlpi -ldladm -lmd -luuid -lvmmapi -lz
-
-zhyve := LDLIBS = -lnvpair
+$(PROG) := LDLIBS += -lsocket -lnsl -ldlpi -ldladm -lmd -luuid -lvmmapi -lz
+$(ZHYVE_PROG) := LDLIBS += -lnvpair
+$(MEVENT_TEST_PROG) := LDLIBS += -lsocket
POST_PROCESS += ; $(GENSETDEFS) $@
@@ -124,7 +124,7 @@ $(PROG): $(OBJS)
$(POST_PROCESS)
$(MEVENT_TEST_PROG): $(MEVENT_TEST_OBJS)
- $(LINK.c) -o $@ $(MEVENT_TEST_OBJS) -lsocket
+ $(LINK.c) -o $@ $(MEVENT_TEST_OBJS) $(LDFLAGS) $(LDLIBS)
install: all $(ZHYVE) $(ROOTUSRSBINPROG) $(SUBDIRS)