summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-04-09 21:38:40 +0000
committerbapt <bapt@FreeBSD.org>2015-04-09 21:38:40 +0000
commit2ef8ecc84200848c2501477275323b7b0ae9748c (patch)
tree003a2e6c24f40c6eaf30bf0c07a965dd7de745b7
parent4bb707efc49daeefe5b2729ab6aed2d424194784 (diff)
downloadFreeBSD-src-2ef8ecc84200848c2501477275323b7b0ae9748c.zip
FreeBSD-src-2ef8ecc84200848c2501477275323b7b0ae9748c.tar.gz
Fix overlinking in bhyve:
libvmmapi is actually needed to be linked to libutil, not bhyve nor bhyveload
-rw-r--r--lib/libvmmapi/Makefile2
-rw-r--r--share/mk/src.libnames.mk1
-rw-r--r--usr.sbin/bhyve/Makefile2
-rw-r--r--usr.sbin/bhyveload/Makefile2
4 files changed, 5 insertions, 2 deletions
diff --git a/lib/libvmmapi/Makefile b/lib/libvmmapi/Makefile
index 93d3c85..26cf86f 100644
--- a/lib/libvmmapi/Makefile
+++ b/lib/libvmmapi/Makefile
@@ -6,6 +6,8 @@ INCS= vmmapi.h
WARNS?= 2
+LIBADD= util
+
CFLAGS+= -I${.CURDIR}
.include <bsd.lib.mk>
diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk
index d6a9ba2..0fbad38 100644
--- a/share/mk/src.libnames.mk
+++ b/share/mk/src.libnames.mk
@@ -229,6 +229,7 @@ _DP_krb5+= asn1 com_err crypt crypto hx509 roken wind heimbase heimipcc \
_DP_gssapi_krb5+= gssapi krb5 crypto roken asn1 com_err
_DP_lzma= pthread
_DP_ucl= m
+_DP_vmmapi= util
# Define spacial cases
LDADD_supcplusplus= -lsupc++
diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile
index 5a1c2c6c..bb81bcb 100644
--- a/usr.sbin/bhyve/Makefile
+++ b/usr.sbin/bhyve/Makefile
@@ -43,7 +43,7 @@ SRCS= \
.PATH: ${.CURDIR}/../../sys/amd64/vmm
SRCS+= vmm_instruction_emul.c
-LIBADD= vmmapi md util pthread
+LIBADD= vmmapi md pthread
WARNS?= 2
diff --git a/usr.sbin/bhyveload/Makefile b/usr.sbin/bhyveload/Makefile
index aa89b6c..fce0c1b 100644
--- a/usr.sbin/bhyveload/Makefile
+++ b/usr.sbin/bhyveload/Makefile
@@ -4,7 +4,7 @@ PROG= bhyveload
SRCS= bhyveload.c
MAN= bhyveload.8
-LIBADD= vmmapi util
+LIBADD= vmmapi
WARNS?= 3
OpenPOWER on IntegriCloud