From: Uwe Hermann Date: Fri, 3 Jan 2014 16:41:24 +0000 (+0100) Subject: Link against libm to avoid Python related linking errors. X-Git-Tag: libsigrokdecode-0.3.0~165 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6af04d5a36a47b11dcf10bb629105600aa5a66eb;p=libsigrokdecode.git Link against libm to avoid Python related linking errors. The python3-config script reported "-lm" as linker option previously, but we switched to using pkg-config (among other things for cross-compile support) which doesn't report "-lm" though (this is a common behaviour across multiple distros and OSes). --- diff --git a/configure.ac b/configure.ac index deedd5c..2d480ee 100644 --- a/configure.ac +++ b/configure.ac @@ -112,6 +112,9 @@ esac AC_SUBST(CPPFLAGS_PYTHON) AC_SUBST(LDFLAGS_PYTHON) +# Link against libm, this is required (among other things) by Python. +AC_SEARCH_LIBS([pow], [m]) + # The Check unit testing framework is optional. Disable if not found. PKG_CHECK_MODULES([check], [check >= 0.9.4], [have_check="yes"; CFLAGS="$CFLAGS $check_CFLAGS";