From b325bc0a160b139745de4ff85f80ac75ef8a1686 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 20 Aug 2014 17:14:17 +0000 Subject: [PATCH] (trunk) #5759 compilation error, undefined reference to sqrt --- cli/Makefile.am | 3 ++- configure.ac | 1 + daemon/Makefile.am | 3 ++- gtk/Makefile.am | 3 ++- libtransmission/Makefile.am | 3 ++- utils/Makefile.am | 6 ++++-- 6 files changed, 13 insertions(+), 6 deletions(-) diff --git a/cli/Makefile.am b/cli/Makefile.am index fb77a391b..7f1672619 100644 --- a/cli/Makefile.am +++ b/cli/Makefile.am @@ -24,5 +24,6 @@ transmission_cli_LDADD = \ @OPENSSL_LIBS@ \ @INTLLIBS@ \ @ZLIB_LIBS@ \ - @PTHREAD_LIBS@ + @PTHREAD_LIBS@ \ + ${LIBM} diff --git a/configure.ac b/configure.ac index 32ecd6eed..ccd659442 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,7 @@ dnl AM_CONFIG_HEADER(config.h) AC_CONFIG_SRCDIR(libtransmission/transmission.h) AM_INIT_AUTOMAKE([1.9 tar-pax no-dist-gzip dist-xz]) LT_INIT +LT_LIB_M if test m4_substr(peer_id_prefix,6,1) = "0"; then supported_build=yes diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 7f1ee907a..4012ef843 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -31,7 +31,8 @@ LDADD = \ @INTLLIBS@ \ @SYSTEMD_DAEMON_LIBS@ \ @ZLIB_LIBS@ \ - @PTHREAD_LIBS@ + @PTHREAD_LIBS@ \ + ${LIBM} noinst_HEADERS = \ watch.h diff --git a/gtk/Makefile.am b/gtk/Makefile.am index f29248275..b1c1dfcdd 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -96,7 +96,8 @@ transmission_gtk_LDADD = \ @LIBCURL_LIBS@ \ @OPENSSL_LIBS@ \ @ZLIB_LIBS@ \ - @PTHREAD_LIBS@ + @PTHREAD_LIBS@ \ + ${LIBM} DESKTOP_IN_FILES=transmission-gtk.desktop.in DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop) diff --git a/libtransmission/Makefile.am b/libtransmission/Makefile.am index 0fd422a2c..d84715879 100644 --- a/libtransmission/Makefile.am +++ b/libtransmission/Makefile.am @@ -172,7 +172,8 @@ apps_ldadd = \ @LIBEVENT_LIBS@ \ @OPENSSL_LIBS@ \ @PTHREAD_LIBS@ \ - @ZLIB_LIBS@ + @ZLIB_LIBS@ \ + ${LIBM} TEST_SOURCES = libtransmission-test.c diff --git a/utils/Makefile.am b/utils/Makefile.am index ad4023f24..cde4a7b78 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -5,7 +5,8 @@ AM_CFLAGS = \ @LIBCURL_CFLAGS@ \ @OPENSSL_CFLAGS@ \ @ZLIB_CFLAGS@ \ - @PTHREAD_CFLAGS@ + @PTHREAD_CFLAGS@ \ + ${LIBM} bin_PROGRAMS = \ transmission-create \ @@ -35,6 +36,7 @@ transmission_create_LDADD = \ @LIBCURL_LIBS@ \ @OPENSSL_LIBS@ \ @ZLIB_LIBS@ \ - @PTHREAD_LIBS@ + @PTHREAD_LIBS@ \ + ${LIBM} transmission_edit_LDADD = $(transmission_create_LDADD) transmission_show_LDADD = $(transmission_create_LDADD) -- 2.40.0