From: Eric Petit Date: Thu, 9 Jul 2009 17:57:31 +0000 (+0000) Subject: Only use libm if it's there and needed X-Git-Tag: 1.73~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff50449d338b71b550da233ba09d2595770ce93c;p=transmission Only use libm if it's there and needed --- diff --git a/cli/Makefile.am b/cli/Makefile.am index fb6f2f9b6..eb49b7488 100644 --- a/cli/Makefile.am +++ b/cli/Makefile.am @@ -26,6 +26,5 @@ transmissioncli_LDADD = \ $(LIBCURL_LIBS) \ $(ZLIB_LIBS) \ $(OPENSSL_LIBS) \ - $(PTHREAD_LIBS) \ - -lm + $(PTHREAD_LIBS) diff --git a/configure.ac b/configure.ac index 014cc409e..fcf9cb0ee 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,7 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET ACX_PTHREAD +AC_SEARCH_LIBS(cos, [m]) AC_SEARCH_LIBS([socket], [socket net]) AC_SEARCH_LIBS([gethostbyname], [nsl bind]) PKG_CHECK_MODULES(OPENSSL, [openssl >= $OPENSSL_MINIMUM], , [CHECK_SSL()]) diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 8c19a07ca..3ec3862e2 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -28,7 +28,7 @@ LDADD = \ $(LIBCURL_LIBS) \ $(ZLIB_LIBS) \ $(OPENSSL_LIBS) \ - $(PTHREAD_LIBS) -lm + $(PTHREAD_LIBS) noinst_HEADERS = \ watch.h diff --git a/gtk/Makefile.am b/gtk/Makefile.am index f10013cc9..1d5ddf753 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -110,7 +110,7 @@ transmission_LDADD = \ $(OPENSSL_LIBS) \ $(LIBCURL_LIBS) \ $(ZLIB_LIBS) \ - $(PTHREAD_LIBS) -lm + $(PTHREAD_LIBS) DESKTOP_IN_FILES=transmission.desktop.in DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop) diff --git a/libtransmission/Makefile.am b/libtransmission/Makefile.am index 84ef7d32d..d896da098 100644 --- a/libtransmission/Makefile.am +++ b/libtransmission/Makefile.am @@ -133,8 +133,7 @@ apps_ldadd = \ $(LIBCURL_LIBS) \ $(OPENSSL_LIBS) \ $(PTHREAD_LIBS) \ - $(ZLIB_LIBS) \ - -lm + $(ZLIB_LIBS) bencode_test_SOURCES = bencode-test.c bencode_test_LDADD = ${apps_ldadd}