Package: mooproxy
Version: 1.0.0-1
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch
User: debian-...@lists.debian.org
Usertags: ld-as-needed

the package mooproxy fails to build when using the linker flag --as-needed
This is caused by the libraries being placed before the objects which
need the symbols.
See the buildlogs in ubuntu oneiric which has this flag set by default:
https://bugs.launchpad.net/ubuntu/+source/mooproxy/+bug/770784

Attached patch fixes this issue by reordering the commandline.

Description: fix build with -Wl,--as-needed
 The object files must be before the libraries which provide the
 symbols they need
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/mooproxy/+bug/770784
Author: Julian Taylor <jtaylor.deb...@googlemail.com>
Index: mooproxy-1.0.0/Makefile
===================================================================
--- mooproxy-1.0.0.orig/Makefile	2011-06-29 19:18:05.966860693 +0200
+++ mooproxy-1.0.0/Makefile	2011-06-29 19:18:28.196860701 +0200
@@ -10,7 +10,7 @@
 all: mooproxy
 
 mooproxy: $(OBJS)
-	$(CC) $(LFLAGS) $(OBJS) -o mooproxy
+	$(CC) $(OBJS) -o mooproxy $(LFLAGS)
 #	strip mooproxy
 
 # If a header file changed, maybe some data formats changed, and all object

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to