Closed Lundis closed 1 year ago
At least when cross-compiling statically to windows on linux, it fails on linking TTF because it cannot find __imp_uuidcreate, which is part of mingw's librpcrt4. Adding it fixed the issue.
Details of my cross-compile setup on ubuntu 22.10:
sudo apt-get install mingw-w64 g++-mingw-w64-x86-64 CGO_ENABLED=1 GOOS=windows GOARCH=amd64 CC=/usr/bin/x86_64-w64-mingw32-gcc go build -v -o program.exe -ldflags "-s -w" -tags static
Thank you @Lundis for the pull request! I will merge it now.
At least when cross-compiling statically to windows on linux, it fails on linking TTF because it cannot find __imp_uuidcreate, which is part of mingw's librpcrt4. Adding it fixed the issue.
Details of my cross-compile setup on ubuntu 22.10: