Code

rrdtool check: stop linking in libm
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 13:06:03 +0000 (15:06 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 10 May 2016 09:26:01 +0000 (11:26 +0200)
(cherry picked from commit 32c0ce39f786c56e9d13f3615253a7ae55b578e6)

configure.ac

index 72eb3fdc993daa2474d5707ca9c2ef505aa03877..f4d7873f1729b021248e1613608a56ed9a0c3bdc 100644 (file)
@@ -3837,17 +3837,17 @@ then
 
        AC_CHECK_LIB(rrd_th, rrd_update_r,
        [with_librrd="yes"
-        librrd_ldflags="$librrd_ldflags -lrrd_th -lm"
+        librrd_ldflags="$librrd_ldflags -lrrd_th"
        ],
        [librrd_threadsafe="no"
         AC_CHECK_LIB(rrd, rrd_update,
         [with_librrd="yes"
-         librrd_ldflags="$librrd_ldflags -lrrd -lm"
+         librrd_ldflags="$librrd_ldflags -lrrd"
         ],
-        [with_librrd="no (symbol 'rrd_update' not found)"],
-        [-lm])
-       ],
-       [-lm])
+        [with_librrd="no (symbol 'rrd_update' not found)"]
+        )
+       ]
+       )
 
        if test "x$librrd_threadsafe" = "xyes"
        then