File: link_with_libm

package info (click to toggle)
htscodecs 0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,764 kB
  • sloc: ansic: 7,999; makefile: 210; sh: 109
file content (21 lines) | stat: -rw-r--r-- 776 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
From: Michael R. Crusoe <michael.crusoe@gmail.com>
Subject: Make sure the library itself, not the tests, link against libm
--- htscodecs.orig/htscodecs/Makefile.am
+++ htscodecs/htscodecs/Makefile.am
@@ -54,4 +54,4 @@
 	varint.h
 
 libhtscodecs_la_LDFLAGS = -version-info @VERS_CURRENT@:@VERS_REVISION@:@VERS_AGE@ 
-libhtscodecs_la_LIBADD = @LIBZ@
+libhtscodecs_la_LIBADD = @LIBZ@ -lm
--- htscodecs.orig/tests/Makefile.am
+++ htscodecs/tests/Makefile.am
@@ -33,7 +33,7 @@
 # Standalone test programs
 noinst_PROGRAMS = rans4x16pr tokenise_name3 arith_dynamic rans4x8 rans4x16pr fqzcomp_qual
 
-LDADD = $(top_builddir)/htscodecs/libhtscodecs.la -lm
+LDADD = $(top_builddir)/htscodecs/libhtscodecs.la
 AM_CPPFLAGS = -I$(top_srcdir)
 
 fqzcomp_qual_SOURCES = fqzcomp_qual_test.c