From f659f12f604df100e33fc578da7a4424b146f1cd Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 14 Apr 2024 12:53:39 +0300 Subject: [PATCH] Build libopus statically --- decoder.go | 3 ++- encoder.go | 3 ++- errors.go | 3 ++- opus.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) 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" -- 2.48.1