Commit 6ae7f861 authored by Ron's avatar Ron

Don't overlink with libm

This will also work on systems where libm is not required.
parent ef801201
......@@ -112,7 +112,7 @@ AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h)
XIPH_PATH_OGG([src="src"], [src=""])
AC_SUBST(src)
AC_CHECK_LIB(m, sin)
LT_LIB_M
# Check for getopt_long; if not found, use included source.
AC_CHECK_FUNCS([getopt_long],,
......
......@@ -40,11 +40,12 @@ noinst_HEADERS = arch.h bfin.h cb_search_arm4.h cb_search_bfin.h cb_search_s
libspeex_la_LDFLAGS = -no-undefined -version-info @SPEEX_LT_CURRENT@:@SPEEX_LT_REVISION@:@SPEEX_LT_AGE@
libspeex_la_LIBADD = $(LIBM)
noinst_PROGRAMS = testenc testenc_wb testenc_uwb
testenc_SOURCES = testenc.c
testenc_LDADD = libspeex.la
testenc_LDADD = libspeex.la $(LIBM)
testenc_wb_SOURCES = testenc_wb.c
testenc_wb_LDADD = libspeex.la
testenc_wb_LDADD = libspeex.la $(LIBM)
testenc_uwb_SOURCES = testenc_uwb.c
testenc_uwb_LDADD = libspeex.la
testenc_uwb_LDADD = libspeex.la $(LIBM)
......@@ -11,5 +11,5 @@ Version: @SPEEX_VERSION@
Requires:
Conflicts:
Libs: -L${libdir} -lspeex
Libs.private: -lm
Libs.private: @LIBM@
Cflags: -I${includedir}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment