Always link against the math library.

This fixes bug #115.
This commit is contained in:
Uwe Hermann 2013-05-10 20:59:42 +02:00
parent 96ea73db23
commit ee8ddd8f5a
2 changed files with 4 additions and 1 deletions

View 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().

View 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}