fix(tracker/gomidi): static cgo linking to avoid DLL dependencies

The linker flags -static -static-libgcc -static-libstdc++ tell mingw
to link statically; otherwise gcc_s_seh-1, stdc++-6 and winpthread-1
are needed.

Fixes #188.
This commit is contained in:
5684185+vsariola@users.noreply.github.com 2025-02-28 15:15:17 +02:00
parent ea4dee9285
commit 78fc6302a0

View File

@ -1,5 +1,11 @@
package gomidi
// These cgo linker flags tell mingw to link gcc_s_seh-1, stdc++-6 and
// winpthread-1 statically; otherwise they are needed as DLLs
// #cgo windows LDFLAGS: -static -static-libgcc -static-libstdc++
import "C"
import (
"errors"
"fmt"