[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#638633: cwirc: FTBFS with ld --as-needed



Package: cwirc
Version: 2.0.0-4
Severity: normal
Tags: patch
User: debian-gcc@lists.debian.org
Usertags: ld-as-needed



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

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

Regards,

  * debian/patches/fix-ftbfs-with-ld-as-needed: (LP: #770951)
    - Reorder libraries to fix FTBFS with ld --as-needed, thanks
      John Nogatch


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 -Nru cwirc-2.0.0/debian/patches/fix-ftbfs-with-ld-as-needed cwirc-2.0.0/debian/patches/fix-ftbfs-with-ld-as-needed
--- cwirc-2.0.0/debian/patches/fix-ftbfs-with-ld-as-needed	1970-01-01 01:00:00.000000000 +0100
+++ cwirc-2.0.0/debian/patches/fix-ftbfs-with-ld-as-needed	2011-08-20 13:58:24.000000000 +0200
@@ -0,0 +1,21 @@
+Description: reorder LDFLAGS and GTK_LDFLAGS later in compile commands
+Author: John T. Nogatch <jnogatch@yahoo.com>
+Reviewed-by: Angel Abad <angelabad@ubuntu.com>
+Bug-Ubuntu: https://launchpad.net/bugs/770951
+
+--- a/Makefile
++++ b/Makefile
+@@ -102,11 +102,11 @@
+ 			extension.o
+ 
+ $(PLUGIN):		$(PLUGIN_OBJS)
+-			$(CC) -shared $(LDFLAGS) -o $@ $(PLUGIN_OBJS)
++			$(CC) -shared -o $@ $(PLUGIN_OBJS) $(LDFLAGS)
+ 			$(STRIP) $@
+ 
+ $(FRONTEND):		$(FRONTEND_OBJS)
+-			$(CC) $(LDFLAGS) $(GTK_LDFLAGS) -o $@ $(FRONTEND_OBJS)
++			$(CC) -o $@ $(FRONTEND_OBJS) $(GTK_LDFLAGS) $(LDFLAGS)
+ 			$(STRIP) $@
+ 
+ plugin.shared.o:	plugin.c					\
diff -Nru cwirc-2.0.0/debian/patches/series cwirc-2.0.0/debian/patches/series
--- cwirc-2.0.0/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ cwirc-2.0.0/debian/patches/series	2011-08-20 13:51:26.000000000 +0200
@@ -0,0 +1 @@
+fix-ftbfs-with-ld-as-needed

Reply to: