| 1 |
Description: Reorder the link arguments and include LDFLAGS. |
| 2 |
With ld --as-needed, order of arguments is actually important, libs should |
| 3 |
always come after objects. Also honor $LDFLAGS. |
| 4 |
Author: Andreas Moog <[email protected]> |
| 5 |
Author: Andrey Rahmatullin <[email protected]> |
| 6 |
Bug: http://sourceforge.net/support/tracker.php?aid=3325206 |
| 7 |
Bug-Ubuntu: https://bugs.launchpad.net/bugs/765986 |
| 8 |
Forwarded: no |
| 9 |
Last-Update 2016-12-10 |
| 10 |
--- |
| 11 |
--- blobandconquer-1.11-dfsg+20.orig/makefile |
| 12 |
+++ blobandconquer-1.11-dfsg+20/makefile |
| 13 |
@@ -101,10 +101,10 @@ all: $(ALL) |
| 14 |
|
| 15 |
# linking the program. |
| 16 |
$(PROG): $(GAMEOBJS) |
| 17 |
- $(CXX) $(LIBS) $(GAMEOBJS) -o $(PROG) |
| 18 |
+ $(CXX) $(LDFLAGS) $(GAMEOBJS) -o $(PROG) $(LIBS) |
| 19 |
|
| 20 |
pak: $(PAKOBJS) |
| 21 |
- $(CXX) $(LIBS) $(PAKOBJS) -o pak |
| 22 |
+ $(CXX) $(LDFLAGS) $(PAKOBJS) -o pak $(LIBS) |
| 23 |
|
| 24 |
%.mo: %.po |
| 25 |
msgfmt -c -o $@ $< |