Author: pabs
Date: 2011-03-25 02:33:52 +0000 (Fri, 25 Mar 2011)
New Revision: 12019

Added:
   packages/trunk/dreamchess/debian/patches/link-with-libm.patch
Modified:
   packages/trunk/dreamchess/debian/changelog
   packages/trunk/dreamchess/debian/patches/series
Log:
Fix FTBFS with GCC 4.5 (Closes: #554498)

Modified: packages/trunk/dreamchess/debian/changelog
===================================================================
--- packages/trunk/dreamchess/debian/changelog  2011-03-25 02:01:04 UTC (rev 
12018)
+++ packages/trunk/dreamchess/debian/changelog  2011-03-25 02:33:52 UTC (rev 
12019)
@@ -5,6 +5,7 @@
   * 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 <[email protected]>  Fri, 25 Mar 2011 08:26:43 +0800
 

Added: packages/trunk/dreamchess/debian/patches/link-with-libm.patch
===================================================================
--- packages/trunk/dreamchess/debian/patches/link-with-libm.patch               
                (rev 0)
+++ packages/trunk/dreamchess/debian/patches/link-with-libm.patch       
2011-03-25 02:33:52 UTC (rev 12019)
@@ -0,0 +1,13 @@
+Description: Add libm to LIBS to ensure correct linking.
+Author: Ilya Barygin <[email protected]>
+--- 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"]

Modified: packages/trunk/dreamchess/debian/patches/series
===================================================================
--- packages/trunk/dreamchess/debian/patches/series     2011-03-25 02:01:04 UTC 
(rev 12018)
+++ packages/trunk/dreamchess/debian/patches/series     2011-03-25 02:33:52 UTC 
(rev 12019)
@@ -1 +1,2 @@
 add-lpthread.diff
+link-with-libm.patch


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to