From f32a8b081636e05a28ed4c4ce3902afa34843234 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 6 Sep 2023 10:33:39 +0800 Subject: [PATCH] use pkg-config get srt lib info, fix echo-receiver build --- examples/echo-receiver/main.go | 2 +- srtgo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/echo-receiver/main.go b/examples/echo-receiver/main.go index 45eb915..bd178a8 100644 --- a/examples/echo-receiver/main.go +++ b/examples/echo-receiver/main.go @@ -1,6 +1,6 @@ package main -// #cgo LDFLAGS: -lsrt +// #cgo pkg-config: srt // #include import "C" diff --git a/srtgo.go b/srtgo.go index d7791c8..8af41a3 100644 --- a/srtgo.go +++ b/srtgo.go @@ -1,7 +1,7 @@ package srtgo /* -#cgo LDFLAGS: -lsrt +#cgo pkg-config: srt #include #include #include "callback.h"