Description: Fix the link commands
 With ld --as-needed, order of arguments is actually important, libs should
 always come after objects. Also honor $LDFLAGS.
Author: Andreas Moog <amoog@ubuntu.com>
Author: Andrey Rahmatullin <wrar@debian.org>
Bug: http://sourceforge.net/support/tracker.php?aid=3325206
Bug-Ubuntu: https://bugs.launchpad.net/bugs/765986

Index: blobandconquer-1.11-dfsg+20/makefile
===================================================================
--- blobandconquer-1.11-dfsg+20.orig/makefile
+++ blobandconquer-1.11-dfsg+20/makefile
@@ -101,10 +101,10 @@ all: $(ALL)
 
 # linking the program.
 $(PROG): $(GAMEOBJS)
-	$(CXX) $(LIBS) $(GAMEOBJS) -o $(PROG)
+	$(CXX) $(LDFLAGS) $(GAMEOBJS) -o $(PROG) $(LIBS)
 	
 pak: $(PAKOBJS)
-	$(CXX) $(LIBS) $(PAKOBJS) -o pak
+	$(CXX) $(LDFLAGS) $(PAKOBJS) -o pak $(LIBS)
 	
 %.mo: %.po
 	msgfmt -c -o $@ $<
