[dreamchess] 63/80: Fix FTBFS with GCC 4.5 (Closes: #554498)

Markus Koschany apo-guest at moszumanska.debian.org
Mon Nov 9 20:26:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository dreamchess.

commit 90265757c858e41abc711c89af9e0f1ad776139a
Author: Paul Wise <pabs at debian.org>
Date:   Fri Mar 25 02:33:52 2011 +0000

    Fix FTBFS with GCC 4.5 (Closes: #554498)
---
 debian/changelog                    |  1 +
 debian/patches/link-with-libm.patch | 13 +++++++++++++
 debian/patches/series               |  1 +
 3 files changed, 15 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1e1795c..3e575ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ dreamchess (0.2.0-3) UNRELEASED; urgency=low
   * Wrap build-deps, deps one per line
   * Wrap Debian menu file, one attribute per line
   * Switch to dpkg-source v3 quilt
+  * Fix FTBFS with GCC 4.5 (Closes: #554498)
 
  -- Paul Wise <pabs at debian.org>  Fri, 25 Mar 2011 08:26:43 +0800
 
diff --git a/debian/patches/link-with-libm.patch b/debian/patches/link-with-libm.patch
new file mode 100644
index 0000000..05ef65a
--- /dev/null
+++ b/debian/patches/link-with-libm.patch
@@ -0,0 +1,13 @@
+Description: Add libm to LIBS to ensure correct linking.
+Author: Ilya Barygin <barygin at gmail.com>
+--- 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"]
diff --git a/debian/patches/series b/debian/patches/series
index d1c10bb..9690fed 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 add-lpthread.diff
+link-with-libm.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/dreamchess.git



More information about the Pkg-games-commits mailing list