qclib/qclib-1.2.0-soname.patch

20 lines
487 B
Diff
Raw Normal View History

2017-01-06 13:43:18 +00:00
--- qclib-1.2.0.old/Makefile 2016-06-03 03:14:01.000000000 -0400
+++ qclib-1.2.0/Makefile 2016-11-08 08:38:37.926521117 -0500
@@ -37,7 +37,7 @@
$(AR) rcs $@ $^
libqc.so.$(VERSION): $(OBJECTS)
- $(LINK) -shared $^ -o $@
+ $(LINK) -Wl,-soname,libqc.so.$(VERM) -shared $^ -o $@
qc_test: qc_test.c libqc.a
$(CC) $(CFLAGS) -static $< -L. -lqc -o $@
@@ -49,6 +49,7 @@
./$<
test-sh: qc_test-sh
+ ln -srf libqc.so.$(VERSION) libqc.so.$(VERM)
LD_LIBRARY_PATH=. ./$<
doc: html