From 6af04d5a36a47b11dcf10bb629105600aa5a66eb Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 3 Jan 2014 17:41:24 +0100 Subject: 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). --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') 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"; -- cgit v1.2.3-70-g09d2