From: Sergey Matveev Date: Sun, 14 Apr 2024 09:53:39 +0000 (+0300) Subject: Build libopus statically X-Git-Tag: v2.1.0^0 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=refs%2Fheads%2Fv2;p=go-opus.git Build libopus statically --- diff --git a/decoder.go b/decoder.go index 176d5be..d8ac6cc 100644 --- a/decoder.go +++ b/decoder.go @@ -10,7 +10,8 @@ import ( ) /* -#cgo pkg-config: opus +#cgo pkg-config: --static opus +#cgo LDFLAGS: -static #include int diff --git a/encoder.go b/encoder.go index b88dc98..b48ad4e 100644 --- a/encoder.go +++ b/encoder.go @@ -10,7 +10,8 @@ import ( ) /* -#cgo pkg-config: opus +#cgo pkg-config: --static opus +#cgo LDFLAGS: -static #include int diff --git a/errors.go b/errors.go index 8e161ad..6332868 100644 --- a/errors.go +++ b/errors.go @@ -9,7 +9,8 @@ import ( ) /* -#cgo pkg-config: opus +#cgo pkg-config: --static opus +#cgo LDFLAGS: -static #include */ import "C" diff --git a/opus.go b/opus.go index 159d06a..88b283a 100644 --- a/opus.go +++ b/opus.go @@ -6,7 +6,8 @@ package opus /* // Link opus using pkg-config. -#cgo pkg-config: opus +#cgo pkg-config: --static opus +#cgo LDFLAGS: -static #include */ import "C"