From: Andreas Moog Date: Sun, 19 Jun 2011 20:03:10 +0000 (+0200) Subject: LIBS go after objects to allow linking with ld --as-needed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=57ce80821823cd2bf70b97132567f7a588642e92;p=quix0rs-blobwars.git LIBS go after objects to allow linking with ld --as-needed --- diff --git a/makefile b/makefile index 0a9cc94..509c2ff 100755 --- a/makefile +++ b/makefile @@ -82,16 +82,16 @@ all: $(ALL) # linking the program. $(PROG): $(GAMEOBJS) - $(CXX) $(LIBS) $(GAMEOBJS) -o $(PROG) + $(CXX) $(GAMEOBJS) -o $(PROG) $(LIBS) pak: $(PAKOBJS) - $(CXX) $(LIBS) $(PAKOBJS) -o pak + $(CXX) $(PAKOBJS) -o pak $(LIBS) %.mo: %.po msgfmt -c -o $@ $< mapeditor: $(MAPOBJS) - $(CXX) $(LIBS) $(MAPOBJS) -o mapeditor + $(CXX) $(MAPOBJS) -o mapeditor $(LIBS) # cleaning everything that can be automatically recreated with "make". clean: