[Pkg-voip-commits] r10512 - in /iaxmodem/trunk/debian: changelog patches/11_build_configure-stamp

tzafrir at alioth.debian.org tzafrir at alioth.debian.org
Fri Jul 25 08:23:42 UTC 2014


Author: tzafrir
Date: Fri Jul 25 08:23:41 2014
New Revision: 10512

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=10512
Log:
Fix link command for building with ld --as-needed (Closes: #641729).

Modified:
    iaxmodem/trunk/debian/changelog
    iaxmodem/trunk/debian/patches/11_build_configure-stamp

Modified: iaxmodem/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/iaxmodem/trunk/debian/changelog?rev=10512&op=diff
==============================================================================
--- iaxmodem/trunk/debian/changelog	(original)
+++ iaxmodem/trunk/debian/changelog	Fri Jul 25 08:23:41 2014
@@ -4,6 +4,7 @@
   * Allow building with libtiff5.
   * jblache is no longer an uploader (Closes: #688548).
   * Switch to dpkg V3 format.
+  * Fix link command for building with ld --as-needed (Closes: #641729).
 
  -- Tzafrir Cohen <tzafrir at debian.org>  Fri, 16 Sep 2011 22:03:26 +0300
 

Modified: iaxmodem/trunk/debian/patches/11_build_configure-stamp
URL: http://svn.debian.org/wsvn/pkg-voip/iaxmodem/trunk/debian/patches/11_build_configure-stamp?rev=10512&op=diff
==============================================================================
--- iaxmodem/trunk/debian/patches/11_build_configure-stamp	(original)
+++ iaxmodem/trunk/debian/patches/11_build_configure-stamp	Fri Jul 25 08:23:41 2014
@@ -9,6 +9,7 @@
  - -ltiff is not needed at all (pulled in for spandsp, but
    tiff-dependent code in spandsp is not used by iaxmodem and not
    linked in the final binary)
+ - Move libraries to end of link command: fixes ld --as-needed (Matthias Klose)
 
 @DPATCH@
 diff -urNad iaxmodem-1.2.0~dfsg~/build iaxmodem-1.2.0~dfsg/build
@@ -60,7 +61,7 @@
      gcc -Wall -g $PTYUSE $CFLAGS -DMODEMVER=\"$MODEMVER\" -DDSPVER=\"$DSPVER\" -DIAXVER=\"$IAXVER\" -DSTATICLIBS \
  	-std=c99 -Ilib/libiax2/src -Ilib/spandsp/src -c -o iaxmodem.o iaxmodem.c && \
 -    gcc -lm $LLIBS -ltiff -o iaxmodem iaxmodem.o lib/spandsp/src/.libs/libspandsp.a lib/libiax2/src/.libs/libiax.a
-+    gcc -lm $LLIBS -o iaxmodem iaxmodem.o lib/spandsp/src/.libs/libspandsp.a lib/libiax2/src/.libs/libiax.a
++    gcc -o iaxmodem iaxmodem.o lib/spandsp/src/.libs/libspandsp.a lib/libiax2/src/.libs/libiax.a -lm $LLIBS
  else
      getVersions && \
      gcc -Wall -g $PTYUSE -DMODEMVER=\"$MODEMVER\" -DDSPVER=\"$DSPVER\" -DIAXVER=\"$IAXVER\" \




More information about the Pkg-voip-commits mailing list