--- usr.sbin/bhyve/Makefile.orig +++ usr.sbin/bhyve/Makefile @@ -3,7 +3,7 @@ # .include -CFLAGS+=-I${.CURDIR}/../../contrib/lib9p +CFLAGS+=-I${SRCTOP}/contrib/lib9p CFLAGS+=-I${SRCTOP}/sys .PATH: ${SRCTOP}/sys/cam/ctl @@ -84,7 +84,8 @@ .PATH: ${BHYVE_SYSDIR}/sys/amd64/vmm SRCS+= vmm_instruction_emul.c -LIBADD= vmmapi md nv pthread z util sbuf cam 9p +LIBADD= md nv pthread z util sbuf cam +LDADD= ../../contrib/lib9p/lib9p.so.%%9P_SHLIB_MAJOR%% ../../lib/libvmmapi/libvmmapi.so.%%VMMAPI_SHLIB_MAJOR%% .if ${MK_CASPER} != "no" LIBADD+= casper