Don't overlink with libm
authorRon <ron@debian.org>
Sat, 7 Dec 2013 16:38:35 +0000 (03:08 +1030)
committerRon <ron@debian.org>
Sat, 7 Dec 2013 16:38:35 +0000 (03:08 +1030)
This will also work on systems where libm is not required.

configure.ac
libspeexdsp/Makefile.am
speexdsp.pc.in

index d1e153e..2ba0b13 100644 (file)
@@ -106,7 +106,7 @@ AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h)
 
 AC_SUBST(src)
 
-AC_CHECK_LIB(m, sin)
+LT_LIB_M
 
 
 AC_ARG_ENABLE(valgrind, [  --enable-valgrind       Enable valgrind extra checks],
index 2788226..7bb6eac 100644 (file)
@@ -29,6 +29,7 @@ noinst_HEADERS =      arch.h  bfin.h \
        pseudofloat.h smallft.h vorbis_psy.h resample_sse.h
 
 libspeexdsp_la_LDFLAGS = -no-undefined -version-info @SPEEXDSP_LT_CURRENT@:@SPEEXDSP_LT_REVISION@:@SPEEXDSP_LT_AGE@
+libspeexdsp_la_LIBADD = $(LIBM)
 
 noinst_PROGRAMS = testdenoise testecho testjitter
 testdenoise_SOURCES = testdenoise.c
index 3956b3b..6c6d26f 100644 (file)
@@ -11,5 +11,5 @@ Version: @PACKAGE_VERSION@
 Requires: @FFT_PKGCONFIG@
 Conflicts:
 Libs: -L${libdir} -lspeexdsp
-Libs.private: -lm
+Libs.private: @LIBM@
 Cflags: -I${includedir}