File: fix_sequence_of_linked_libs.patch

package info (click to toggle)
htslib 1.21%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 10,940 kB
  • sloc: ansic: 68,108; sh: 3,580; perl: 2,021; makefile: 887; cpp: 40
file content (26 lines) | stat: -rw-r--r-- 1,270 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Author: Andreas Tille <tille@debian.org>
Last-Update: 2022-09-29
Origin: https://lists.debian.org/debian-med/2022/09/msg00053.html
Description: Make sure all symbols of libhts will be really found
FIXME: It would be more elegant to specify libhts.a at the *correct* position rather than force it twice.
       Even better would be dynamic linking since we are creating libhts.so as well

--- htslib.orig/Makefile
+++ htslib/Makefile
@@ -525,13 +525,13 @@
 	$(CC) $(LDFLAGS) -o $@ annot-tsv.o libhts.a $(LIBS) -lpthread
 
 bgzip: bgzip.o libhts.a
-	$(CC) $(LDFLAGS) -o $@ bgzip.o libhts.a $(LIBS) -lpthread
+	$(CC) $(LDFLAGS) -o $@ bgzip.o libhts.a $(LIBS) libhts.a -lpthread
 
 htsfile: htsfile.o libhts.a
-	$(CC) $(LDFLAGS) -o $@ htsfile.o libhts.a $(LIBS) -lpthread
+	$(CC) $(LDFLAGS) -o $@ htsfile.o libhts.a $(LIBS) libhts.a -lpthread
 
 tabix: tabix.o libhts.a
-	$(CC) $(LDFLAGS) -o $@ tabix.o libhts.a $(LIBS) -lpthread
+	$(CC) $(LDFLAGS) -o $@ tabix.o libhts.a $(LIBS) libhts.a -lpthread
 
 annot-tsv.o: annot-tsv.c config.h $(htslib_hts_h) $(htslib_hts_defs_h) $(htslib_khash_str2int_h) $(htslib_kstring_h) $(htslib_kseq_h) $(htslib_bgzf_h) $(htslib_regidx_h) $(textutils_internal_h)
 bgzip.o: bgzip.c config.h $(htslib_bgzf_h) $(htslib_hts_h) $(htslib_hfile_h)