Skip to contentSkip to conversation

libcacard: Don't link with all libraries QEMU links to

PATCH In review Christophe Fergeau 2 participants 2 messages Jan 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 libcacard/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libcacard/Makefile +1 -1
index 4d15da4..6b06448 100644
@@ -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,$^)
 
Signature · 1 line
1.8.5.3
Acked-by on v1 1/1
#1 lore raw

On 01/30/2014 03:56 PM, Christophe Fergeau wrote:

Quoted 24 lines

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.

---
 libcacard/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libcacard/Makefile +1 -1
index 4d15da4..6b06448 100644
@@ -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,$^)