Package: alienblaster
Version: 1.1.0-5
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 alienblaster fails to build when using the linker flag
--as-needed
This is caused by the libraries are being placed before the objects
using it. In that case the libraries are not registered as needed and is
dropped.
See the buildlogs in ubuntu oneiric which has this flag set by default:
https://launchpad.net/ubuntu/+source/alienblaster/1.1.0-5

Attached patch resolves the issue by reordering the command line.


Description: fix build with --as-needed
 the libraries must be behind the object files needing them
Author: Julian Taylor <jtaylor.deb...@googlemail.com>
Index: alienblaster-1.1.0/src/Makefile
===================================================================
--- alienblaster-1.1.0.orig/src/Makefile	2011-06-29 17:46:42.126858807 +0200
+++ alienblaster-1.1.0/src/Makefile	2011-06-29 17:46:57.836858813 +0200
@@ -47,7 +47,7 @@
 	@echo ""
 	@echo ""
 	@echo "Linking $@"
-	@$(COMPILER) $(GAME_LIBS) -o $(GAME_NAME) $(OBJECT_FILES)
+	@$(COMPILER) -o $(GAME_NAME) $(OBJECT_FILES) $(GAME_LIBS)
 	mv $(GAME_NAME) ../
 
 %.o: %.cc

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to