[SCM] jack-tools/master: Fix FTBFS with ld --as-needed.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Tue Jan 10 18:44:36 UTC 2012


The following commit has been merged in the master branch:
commit 7e62b5be4f2f0bc85619b7041158a7a70041b3e2
Author: Alessio Treglia <alessio at debian.org>
Date:   Tue Jan 10 19:44:02 2012 +0100

    Fix FTBFS with ld --as-needed.
    
    Closes: #655216
    Thanks: Leo Iannacone <l3on at ubuntu.com>

diff --git a/debian/patches/fix_ftbfs_ld_as_needed.patch b/debian/patches/fix_ftbfs_ld_as_needed.patch
new file mode 100644
index 0000000..7de7a2b
--- /dev/null
+++ b/debian/patches/fix_ftbfs_ld_as_needed.patch
@@ -0,0 +1,20 @@
+Description: Declaring math lib and dynamic loaded lib to LIBS to fix FTBFS.
+Author: Leo Iannacone <l3on at ubuntu.com>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/913459
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655216
+Forwarded: no
+---
+ configure.ac |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- jack-tools.orig/configure.ac
++++ jack-tools/configure.ac
+@@ -50,6 +50,8 @@ AC_CHECK_HEADERS(sys/inotify.h, AC_DEFIN
+ 
+ AC_SUBST(AM_CFLAGS)
+ AM_CFLAGS="-D_POSIX_C_SOURCE=200112 -std=c99 -O3 -funroll-loops -Wall"
++AC_SUBST(LIBS)
++LIBS="-lm -ldl"
+ 
+ # Write Makefile.
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 28c957a..c8a3551 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix_ftbfs_with_printf.patch
+fix_ftbfs_ld_as_needed.patch
diff --git a/debian/rules b/debian/rules
index e8ad112..5722266 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,8 +28,6 @@ include /usr/share/cdbs/1/rules/utils.mk
 # Suppress optional build-dependencies
 CDBS_BUILD_DEPENDS_rules_utils_copyright-check =
 
-LDFLAGS += -ldl -lm
-
 # bootstrap autotools files (CDBS by default only update, not create)
 DEB_MAKE_CLEAN_TARGET = distclean
 DEB_AUTOMAKE_ARGS = --add-missing --copy --foreign

-- 
jack-tools packaging



More information about the pkg-multimedia-commits mailing list