Package: cycfx2prog
Version: 0.47-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: ld-as-needed



*** /tmp/tmpddY9h7
In Ubuntu, the attached patch was applied to achieve the following:

Hi! This package fails to build from source with ld -as-needed and
binutils-gold, this patch solves the problem.

Regards,

  * debian/patches/fix-ftbfs-with-ls-as-needed.patch: (LP: #770790)
    - Reorder libraries to fix FTBFS with ld --as-needed


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-8-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 -u cycfx2prog-0.47/debian/changelog cycfx2prog-0.47/debian/changelog
only in patch2:
unchanged:
--- cycfx2prog-0.47.orig/debian/patches/fix-ftbfs-with-ls-as-needed.patch
+++ cycfx2prog-0.47/debian/patches/fix-ftbfs-with-ls-as-needed.patch
@@ -0,0 +1,24 @@
+Description: Reorder libraries to fix FTBFS with ld --as-needed
+Author: Angel Abad <[email protected]>
+Bug-Ubuntu: https://launchpad.net/bugs/770790
+
+diff -Nur -x '*.orig' -x '*~' cycfx2prog-0.47//Makefile cycfx2prog-0.47.new//Makefile
+--- cycfx2prog-0.47//Makefile	2009-12-06 18:55:28.000000000 +0100
++++ cycfx2prog-0.47.new//Makefile	2011-08-21 13:18:48.223560927 +0200
+@@ -2,14 +2,14 @@
+ VERSION = 0.47
+ CFLAGS = -O2 -fno-rtti -fno-exceptions -DCYCFX2PROG_VERSION=\"$(VERSION)\" \
+ 	-W -Wall -Wformat
+-LDFLAGS = -lusb
++LIBS = -lusb
+ DIST_DEST = cycfx2prog-$(VERSION)
+ 
+ all: cycfx2prog
+ 
+ # NOTE: Also add sources to the "dist:" target!
+ cycfx2prog: cycfx2prog.o cycfx2dev.o
+-	$(CC) $(LDFLAGS) cycfx2prog.o cycfx2dev.o -o cycfx2prog
++	$(CC) cycfx2prog.o cycfx2dev.o -o cycfx2prog $(LIBS)
+ 
+ clean:
+ 	-rm -f *.o

Reply via email to