From 5752866867b53739b04b28bb0c5e009371d8efd8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 6 May 2016 03:39:37 -0400 Subject: 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b1a6484..06a84e8 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ build: $(OUT) static: $(SOUT) $(OUT): $(OBJ) - $(CC) $(ALLLDFLAGS) -fPIC -shared -o $@ $^ + $(CC) -fPIC -shared -o $@ $^ $(ALLLDFLAGS) $(SOUT): $(OBJ) $(AR) rcs $@ $^ -- cgit v1.2.3