File: 1000-fix-linking.patch

package info (click to toggle)
blobandconquer 1.11-dfsg%2B20-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 89,720 kB
  • sloc: cpp: 39,033; ansic: 362; makefile: 143
file content (25 lines) | stat: -rw-r--r-- 820 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Reorder the link arguments and include LDFLAGS.
 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
Forwarded: no
Last-Update 2016-12-10
---
--- 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 $@ $<