summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-06 03:39:37 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-06 03:39:37 -0400
commit5752866867b53739b04b28bb0c5e009371d8efd8 (patch)
tree9754a272bd8471c7397e57858ab1792e84da5e29
parent3f299deb6da6267283a7ad02fa4572c6583eb170 (diff)
downloadlibvt100-5752866867b53739b04b28bb0c5e009371d8efd8.tar.gz
libvt100-5752866867b53739b04b28bb0c5e009371d8efd8.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--Makefile2
1 files changed, 1 insertions, 1 deletions
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 $@ $^