From 0a843804b6404182d2654d806fc37264bd0377a6 Mon Sep 17 00:00:00 2001 From: Vladimir Buzuev Date: Sat, 3 Apr 2021 17:35:14 -0700 Subject: [PATCH] fix buldled static build on Windows/MinGW --- Build_bundled_static.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build_bundled_static.go b/Build_bundled_static.go index 4d10d45..65e31ac 100644 --- a/Build_bundled_static.go +++ b/Build_bundled_static.go @@ -4,7 +4,7 @@ package git /* #cgo windows CFLAGS: -I${SRCDIR}/static-build/install/include/ -#cgo windows LDFLAGS: -L${SRCDIR}/static-build/install/lib/ -lgit2 -lwinhttp +#cgo windows LDFLAGS: -L${SRCDIR}/static-build/install/lib/ -lgit2 -lwinhttp -lws2_32 -lole32 -lrpcrt4 -lcrypt32 #cgo !windows pkg-config: --static ${SRCDIR}/static-build/install/lib/pkgconfig/libgit2.pc #cgo CFLAGS: -DLIBGIT2_STATIC #include