File libcfgplus-shared.diff of Package libcfgplus

From: Jan Engelhardt <jengelh@medozas.de>
Date: 2011-09-27 01:14:35.063711195 +0200

Pass -Wl,-soname to the linker so that we have a consistent
library request in a program executable.
---
 Rules.make.in   |    4 ++--
 src/Makefile.in |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Index: libcfg+-0.6.2/Rules.make.in
===================================================================
--- libcfg+-0.6.2.orig/Rules.make.in
+++ libcfg+-0.6.2/Rules.make.in
@@ -160,7 +160,7 @@ $(LIBSTATIC):	$(OBJECTS)
 	$(AR) r $@ $(OBJECTS)
 
 $(LIBDYNAMICV):	$(OBJECTS)
-	$(LD) $(LDFLAGS) -shared -o $@ $(OBJECTS)
+	$(CCLD) $(LDFLAGS) -Wl,-soname -Wl,${LIBDYNAMICV} -shared -o $@ $(OBJECTS)
 
 %.o: %.c $(CONFIG_HEADER)
 	@echo '$(COMPILE) -c $<'; \
openSUSE Build Service is sponsored by