]> sigrok.org Git - libsigrok.git/commitdiff
Always link against the math library.
authorUwe Hermann <redacted>
Fri, 10 May 2013 18:59:42 +0000 (20:59 +0200)
committerUwe Hermann <redacted>
Fri, 10 May 2013 19:46:30 +0000 (21:46 +0200)
This fixes bug #115.

configure.ac
libsigrok.pc.in

index b5610187a70c3c639ba460aa002042d8640c3748..7c88dc71a9af19ded81fb962fafc08f258ac8432 100644 (file)
@@ -197,6 +197,9 @@ AC_ARG_ENABLE(zeroplus-logic-cube,
 # libsigrok.pc file.
 SR_PKGLIBS=""
 
+# libm (the standard math library) is always needed.
+AC_SEARCH_LIBS([pow], [m])
+
 # libglib-2.0 is always needed. Abort if it's not found.
 # Note: glib-2.0 is part of the libsigrok API (hard pkg-config requirement).
 # We require at least 2.32.0 due to e.g. g_variant_new_fixed_array().
index 251411cd9f53c48b12fc73444dcd6feba3b853dd..219f7c3ba00322096de835b7df817f01a7929a14 100644 (file)
@@ -10,6 +10,6 @@ Requires: glib-2.0
 Requires.private: @SR_PKGLIBS@
 Version: @VERSION@
 Libs: -L${libdir} -lsigrok
-Libs.private:
+Libs.private: -lm
 Cflags: -I${includedir}