@@ -217,7 +217,6 @@ obj-i386-y += i8254-kvm.o
endif
ifeq ($(USE_KVM_DEVICE_ASSIGNMENT), 1)
obj-i386-y += device-assignment.o
-LIBS+=-lpci
endif
# Hardware support
@@ -228,7 +227,6 @@ obj-ia64-y += usb-uhci.o
ifeq ($(USE_KVM_DEVICE_ASSIGNMENT), 1)
obj-ia64-y += device-assignment.o
-LIBS+=-lpci
endif
# shared objects
@@ -964,7 +964,7 @@ cat > $TMPC << EOF
int main(void) { return 0; }
EOF
if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $TMPC 2>/dev/null ; then
- :
+ libs_softmmu="-lpci $libs_softmmu"
else
echo
echo "Error: libpci check failed"
Signed-off-by: Juan Quintela <quintela@redhat.com> --- Makefile.target | 2 -- configure | 2 +- 2 files changed, 1 insertions(+), 3 deletions(-)