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
|