1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 17 Sep 2014 19:35:06 +0200
Description: Add soname to shared libraries
--- a/src/Makefile.unx
+++ b/src/Makefile.unx
@@ -365,7 +365,7 @@ drawgram: drawgram.o draw.o draw2.o
# needed by java
libdrawgram.so: drawgram.o draw.o draw2.o phylip.o
- $(CC) $(CFLAGS) -o libdrawgram.so -shared -fPIC drawgram.c draw.c draw2.c phylip.c $(CLIBS) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o libdrawgram.so -Wl,-soname,libdrawgram.so -shared -fPIC drawgram.c draw.c draw2.c phylip.c $(DLIBS)
drawtree.o: drawtree.c draw.h phylip.h
$(CC) $(DFLAGS) -shared -fPIC -c drawtree.c
@@ -375,7 +375,7 @@ drawtree: drawtree.o draw.o draw2.o
# needed by java
libdrawtree.so: drawtree.o draw.o draw2.o phylip.o
- $(CC) $(CFLAGS) -o libdrawtree.so -shared -fPIC drawtree.c draw.c draw2.c phylip.c $(CLIBS) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o libdrawtree.so -Wl,-soname,libdrawtree.so -shared -fPIC drawtree.c draw.c draw2.c phylip.c $(DLIBS)
factor.o: factor.c phylip.h
|