Skip to content

Commit

Permalink
Update static libs on MINGW32/MINGW64
Browse files Browse the repository at this point in the history
curl needs zstd now, add `-lzstd` for static linking.
  • Loading branch information
mengmo authored and selsta committed Jan 16, 2021
1 parent 2bba86e commit 70dde6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CFLAGS+=-DPREFIX='"$(PREFIX)"'
ifeq ("$(OSNAME)", "cygwin")
LDFLAGS+=-lpthread $(shell pkg-config libcurl --static --libs)
else ifneq ($(findstring "$(OSNAME)","mingw32" "mingw64"),)
LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz
LDFLAGS+=-Wl,-Bstatic -lpthread -lcurl -lnghttp2 -lssh2 -lbrotlidec-static -lbrotlicommon-static -lssl -lcrypto -lcrypt32 -lwsock32 -lws2_32 -lwldap32 -lz -lzstd
else
LDFLAGS+=-lpthread -lcurl -lcrypto -lssl
endif
Expand Down

0 comments on commit 70dde6a

Please sign in to comment.