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
|