Make build system respect LDFLAGS.
authorPacho Ramos <pacho@gentoo.org>
Mon, 29 Aug 2011 18:36:16 +0000 (20:36 +0200)
committerGuus Sliepen <guus@debian.org>
Mon, 29 Aug 2011 20:02:24 +0000 (22:02 +0200)
makefile

index fbbc9a29051bd58f9d88ea7891dff6e02c573b33..eb3720421e1199a14f143e86607e0d09f82751fb 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -83,16 +83,16 @@ all: $(ALL)
 
 # linking the program.
 $(PROG): $(GAMEOBJS)
-       $(CXX) $(GAMEOBJS) -o $(PROG) $(LIBS)
+       $(CXX) $(LDFLAGS) $(GAMEOBJS) -o $(PROG) $(LIBS)
        
 pak: $(PAKOBJS)
-       $(CXX) $(PAKOBJS) -o pak $(PAKLIBS)
+       $(CXX) $(LDFLAGS) $(PAKOBJS) -o pak $(PAKLIBS)
 
 %.mo: %.po
        msgfmt -c -o $@ $<
 
 mapeditor: $(MAPOBJS)
-       $(CXX) $(MAPOBJS) -o mapeditor $(LIBS)
+       $(CXX) $(LDFLAGS) $(MAPOBJS) -o mapeditor $(LIBS)
 
 # cleaning everything that can be automatically recreated with "make".
 clean: