File: soname.patch

package info (click to toggle)
phylip 1%3A3.697%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,372 kB
  • sloc: ansic: 64,948; java: 2,251; makefile: 56; xml: 46; sh: 32
file content (24 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download | duplicates (5)
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