File: 07-fix_as_needed_build.patch

package info (click to toggle)
alienblaster 1.1.0-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,372 kB
  • sloc: cpp: 9,843; makefile: 59; sh: 9
file content (22 lines) | stat: -rw-r--r-- 587 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
Description: fix build with --as-needed
 the libraries must be behind the object files needing them
Author: Julian Taylor <jtaylor.debian@googlemail.com>
--- a/src/Makefile
+++ b/src/Makefile
@@ -47,14 +47,14 @@
 	@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
 	@echo ""
 	@echo ""
 	@echo "Compiling $<"
-	@$(COMPILER) $(GAME_FLAGS) $(INCLUDE_PATH) -c $< -o $@ 
+	$(COMPILER) $(GAME_FLAGS) $(INCLUDE_PATH) -c $< -o $@ 
 
 depend:  dep