mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
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:
parent
ea4dee9285
commit
78fc6302a0
@ -1,5 +1,11 @@
|
|||||||
package gomidi
|
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 (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
Loading…
Reference in New Issue
Block a user