]> granicus.if.org Git - transmission/commitdiff
(trunk) #5759 compilation error, undefined reference to sqrt
authorJordan Lee <jordan@transmissionbt.com>
Wed, 20 Aug 2014 17:14:17 +0000 (17:14 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 20 Aug 2014 17:14:17 +0000 (17:14 +0000)
cli/Makefile.am
configure.ac
daemon/Makefile.am
gtk/Makefile.am
libtransmission/Makefile.am
utils/Makefile.am

index fb77a391b3e2b3851cac50136c5f89825215ae24..7f16726195a4a9fa980c9ee97c3a2a15069b4998 100644 (file)
@@ -24,5 +24,6 @@ transmission_cli_LDADD = \
     @OPENSSL_LIBS@ \
     @INTLLIBS@ \
     @ZLIB_LIBS@ \
-    @PTHREAD_LIBS@
+    @PTHREAD_LIBS@ \
+    ${LIBM}
 
index 32ecd6eed9866110ffe1fe12f49470a7f11e0429..ccd659442768194b5b674ef1310c4a5bc732929f 100644 (file)
@@ -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
index 7f1ee907addfc42dd86efacf0efb89c7d99c4ea9..4012ef843e287effa200d59f0bb98f9dde1f96bb 100644 (file)
@@ -31,7 +31,8 @@ LDADD = \
     @INTLLIBS@ \
     @SYSTEMD_DAEMON_LIBS@ \
     @ZLIB_LIBS@ \
-    @PTHREAD_LIBS@
+    @PTHREAD_LIBS@ \
+    ${LIBM}
 
 noinst_HEADERS = \
     watch.h
index f292482750d888124d079cb58d743658f41d5149..b1c1dfcdd2559caf918beb182f54914352138682 100644 (file)
@@ -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)
index 0fd422a2c6345d62382c548a658a845ebbe516af..d84715879b0af3bf6c0641b156415f704c4eee76 100644 (file)
@@ -172,7 +172,8 @@ apps_ldadd = \
   @LIBEVENT_LIBS@ \
   @OPENSSL_LIBS@ \
   @PTHREAD_LIBS@ \
-  @ZLIB_LIBS@
+  @ZLIB_LIBS@ \
+  ${LIBM}
 
 TEST_SOURCES = libtransmission-test.c
 
index ad4023f240f53e249bb7c66fb2f64bf0bd20775e..cde4a7b783703d93025268498a60c8199495a9d8 100644 (file)
@@ -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)