From: Christophe Fergeau Date: Thu, 30 Jan 2014 13:56:49 +0000 (+0100) Subject: libcacard: Don't link with all libraries QEMU links to X-Git-Tag: qemu-xen-4.5.0-rc1~200^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=73db416ae7941f8ffeabc060ec87402b97314b6d;p=qemu-upstream-4.6-testing.git libcacard: Don't link with all libraries QEMU links to As described in https://bugzilla.redhat.com/show_bug.cgi?id=987441 , libcacard currently links to all the libraries QEMU is linking to, including glusterfs libraries, libiscsi, ... libcacard does not need all of these. This patch ensures it's only linked with the libraries it needs. Signed-off-by: Christophe Fergeau Signed-off-by: Alon Levy --- diff --git a/libcacard/Makefile b/libcacard/Makefile index 4d15da49b..6b064485f 100644 --- a/libcacard/Makefile +++ b/libcacard/Makefile @@ -25,7 +25,7 @@ vscclient$(EXESUF): libcacard/vscclient.o libcacard.la libcacard.la: LDFLAGS += -rpath $(libdir) -no-undefined \ -export-syms $(SRC_PATH)/libcacard/libcacard.syms -libcacard.la: LIBS += $(libcacard_libs) +libcacard.la: LIBS = $(libcacard_libs) libcacard.la: $(libcacard-lobj-y) $(call LINK,$^)