tags 554498 patch
thanks
Hello,
Attached patch was applied in Ubuntu to fix this problem.
https://launchpad.net/ubuntu/+source/dreamchess/0.2.0-2ubuntu1
Description: Add libm to LIBS to ensure correct linking.
Author: Ilya Barygin <[email protected]>
--- a/configure
+++ b/configure
@@ -4485,7 +4485,7 @@
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
if test $ac_cv_lib_m_sqrt = yes; then
- have_m="yes" M_LIBS="-lm"
+ have_m="yes" M_LIBS="-lm" LIBS="${M_LIBS} ${LIBS}"
else
have_m="no"
fi
--- a/configure.ac
+++ b/configure.ac
@@ -89,7 +89,7 @@
[have_sdl_opengl_h="yes"], [have_sdl_opengl_h="no"]
)
-AC_CHECK_LIB(m, sqrt, [have_m="yes" M_LIBS="-lm"], [have_m="no"])
+AC_CHECK_LIB(m, sqrt, [have_m="yes" M_LIBS="-lm" LIBS="${M_LIBS} ${LIBS}"], [have_m="no"])
AC_CHECK_LIB(z, compress, [have_z="yes" Z_LIBS="-lz"],
[have_z="no"]