]> git.armaanb.net Git - st.git/commitdiff
Revert "fixed STLDFLAG order in broken st Makefile"
authorHiltjo Posthuma <hiltjo@codemadness.org>
Wed, 13 Sep 2017 20:40:36 +0000 (22:40 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Wed, 13 Sep 2017 20:40:36 +0000 (22:40 +0200)
This reverts commit 7f990328e4fec8dfaaad311cb8af2304b58c872e.

this was wrong as pointed out by k0ga:
"STLDFLAGS is about flags to the linker, for example -L
not about -l for that reason it must go before the object list".

Makefile

index c678ead14de96bb202a6ab0b82d6a877f796af6c..128ee9d406f58d269130ee167a862572ea905eea 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ x.o: arg.h st.h win.h
 $(OBJ): config.h config.mk
 
 st: $(OBJ)
-       $(CC) -o $@ $(OBJ) $(STLDFLAGS)
+       $(CC) $(STLDFLAGS) -o $@ $(OBJ)
 
 clean:
        rm -f st $(OBJ) st-$(VERSION).tar.gz