]> git.armaanb.net Git - st.git/commitdiff
Revert "Revert "fixed STLDFLAG order in broken st Makefile""
authorHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 15 Sep 2017 09:16:37 +0000 (11:16 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 15 Sep 2017 09:16:37 +0000 (11:16 +0200)
This reverts commit 274d46ace00003d1df718b974d17642cbce167d5.

Sorry, the original commit was correct after all. It allows has the
correct link order and supports static-linking also.

Just a reminder: it is important to give a (brief) rationale of the
patch intentions.

Makefile

index 128ee9d406f58d269130ee167a862572ea905eea..c678ead14de96bb202a6ab0b82d6a877f796af6c 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) $(STLDFLAGS) -o $@ $(OBJ)
+       $(CC) -o $@ $(OBJ) $(STLDFLAGS)
 
 clean:
        rm -f st $(OBJ) st-$(VERSION).tar.gz