Package: wmmixer Version: 1.6-1 Severity: normal Tags: patch User: debian-...@lists.debian.org Usertags: ld-as-needed
*** /tmp/tmppFnlPp In Ubuntu, the attached patch was applied to achieve the following: Dear Maintainer, this package fails to build from source with binutils-gold and ld --as-needed, this patch solves the problem. Regards, * debian/patches/03_fix_ftbfs_with_ld_as_needed.patch - Fix FTBFS with ld --as-needed (LP: #831086) Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers oneiric-updates APT policy: (500, 'oneiric-updates'), (500, 'oneiric') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-9-generic (SMP w/1 CPU core) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru wmmixer-1.6/debian/patches/03_fix_ftbfs_with_ld_as_needed.patch wmmixer-1.6/debian/patches/03_fix_ftbfs_with_ld_as_needed.patch --- wmmixer-1.6/debian/patches/03_fix_ftbfs_with_ld_as_needed.patch 1970-01-01 01:00:00.000000000 +0100 +++ wmmixer-1.6/debian/patches/03_fix_ftbfs_with_ld_as_needed.patch 2011-09-04 10:06:25.000000000 +0200 @@ -0,0 +1,25 @@ +Description: Fix FTBFS with ld --as-needed +Author: Angel Abad <angela...@ubuntu.com> +Bug-Ubuntu: https://launchpad.net/bugs/831086 +Forwarded: no + +--- wmmixer-1.6.orig/Makefile ++++ wmmixer-1.6/Makefile +@@ -18,7 +18,7 @@ EXTRA_LIBS = -L/usr/X11R6/lib -lX11 -lX + + + LD = g++ +-LDFLAGS = -o $(EXECUTABLE) $(EXTRA_LIBDIRS) $(EXTRA_LIBS) $(CXXFLAGS) ++LDFLAGS = -o $(EXECUTABLE) $(CXXFLAGS) + + EXECUTABLE = wmmixer + OBJS = xhandler.o mixctl.o wmmixer.o exception.o +@@ -31,7 +31,7 @@ INSTALL_PROGRAM = $(INSTALL) -D -p -o + $(CXX) $(CXXFLAGS) -c -o $@ $< + + $(EXECUTABLE): $(OBJS) +- $(LD) $(LDFLAGS) $(OBJS) ++ $(LD) $(LDFLAGS) $(OBJS) $(EXTRA_LIBDIRS) $(EXTRA_LIBS) + + all: $(EXECUTABLE) + diff -Nru wmmixer-1.6/debian/patches/series wmmixer-1.6/debian/patches/series --- wmmixer-1.6/debian/patches/series 2011-07-13 11:59:11.000000000 +0200 +++ wmmixer-1.6/debian/patches/series 2011-09-04 09:58:10.000000000 +0200 @@ -1,2 +1,3 @@ 01_debian_paths.patch 02_Makefile_optimization.patch +03_fix_ftbfs_with_ld_as_needed.patch