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

Bug#638768: djtools: FTBFS with ld --as-needed

Package: djtools
Version: 1.2.6
Severity: normal
Tags: patch
User: debian-gcc@lists.debian.org
Usertags: ld-as-needed

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

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


  * Reorder libraries to fix FTBFS with ld --as-needed (LP: #770868)

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 djtools-1.2.6/djscript/Makefile djtools-1.2.6ubuntu1/djscript/Makefile
--- djtools-1.2.6/djscript/Makefile	2003-01-08 21:47:37.000000000 +0100
+++ djtools-1.2.6ubuntu1/djscript/Makefile	2011-08-21 18:53:53.000000000 +0200
@@ -53,7 +53,7 @@
 djscript : print.o
-	$(CXX) $(CFLAGS) -o $@ -lpaper $^
+	$(CXX) $(CFLAGS) -o $@ $^ -lpaper
 %.o : %.C
 	$(CXX) $(CFLAGS) -c $<

Reply to: