aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-06 03:43:07 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-06 03:43:07 -0400
commit626525986b0a55c2ed1d72e8f76a49b31efabd52 (patch)
tree798c84a472708fd330bfa5244de685d590f5672f
parentd8de03f6db3d02761e1695c59b1b93bd798170e7 (diff)
downloadrunes-626525986b0a55c2ed1d72e8f76a49b31efabd52.tar.gz
runes-626525986b0a55c2ed1d72e8f76a49b31efabd52.zip
move libs to the end of the linker flag list
some operating systems (ubuntu) require this: https://askubuntu.com/questions/194193/why-do-i-get-undefined-reference-errors-when-linking-against-openssl
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 19f559d..e03bceb 100644
--- a/Makefile
+++ b/Makefile
@@ -40,13 +40,13 @@ run-daemon: $(DOUT) $(COUT) ## Build and run the runes daemon
@./$(DOUT)
$(OUT): $(OBJ) libvt100/libvt100.a
- $(CC) $(ALLLDFLAGS) -o $@ $^
+ $(CC) -o $@ $^ $(ALLLDFLAGS)
$(DOUT): $(DOBJ) libvt100/libvt100.a
- $(CC) $(ALLLDFLAGS) -o $@ $^
+ $(CC) -o $@ $^ $(ALLLDFLAGS)
$(COUT): $(COBJ)
- $(CC) $(ALLLDFLAGS) -o $@ $^
+ $(CC) -o $@ $^ $(ALLLDFLAGS)
libvt100/libvt100.a:
cd libvt100 && make static