File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ jobs:
121121 CGO_ENABLED=1 GOOS=windows GOARCH=amd64 \
122122 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ \
123123 PKG_CONFIG_PATH=/usr/local/x86_64-w64-mingw32/lib/pkgconfig \
124+ CGO_LDFLAGS="-luchardet -lstdc++ -static-libgcc -static-libstdc++ -lws2_32" \
124125 go build -tags uchardet \
125126 -ldflags "-s -w" \
126127 -o transcode-windows-amd64.exe
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ package uchardet
55#cgo pkg-config: uchardet
66#cgo linux LDFLAGS: -Wl,-Bstatic -luchardet -lstdc++ -Wl,-Bdynamic
77#cgo darwin LDFLAGS: -luchardet -lstdc++
8- #cgo windows LDFLAGS: -luchardet -static-libgcc -static-libstdc++ - lws2_32
8+ #cgo windows LDFLAGS: -luchardet -lws2_32
99#include <stdio.h>
1010#include <stdlib.h>
1111#include <string.h>
You can’t perform that action at this time.
0 commit comments