From dcb4c29addfaf7ac4f1135e3fdfabb91bb76c766 Mon Sep 17 00:00:00 2001 From: Michael Nightingale <9887246+mnightingale@users.noreply.github.com> Date: Wed, 25 Oct 2023 22:48:48 +0100 Subject: [PATCH] Platform dependant linking for darwin arm64 --- decoder.go | 1 - encoder.go | 1 - rapidyenc_darwin_arm64.go | 6 ++++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 rapidyenc_darwin_arm64.go diff --git a/decoder.go b/decoder.go index cf82bda..87de410 100644 --- a/decoder.go +++ b/decoder.go @@ -2,7 +2,6 @@ package rapidyenc /* #cgo CFLAGS: -I${SRCDIR}/rapidyenc -#cgo LDFLAGS: -L${SRCDIR}/lib -lrapidyenc #include "rapidyenc.h" */ import "C" diff --git a/encoder.go b/encoder.go index d233fd4..94a91a9 100644 --- a/encoder.go +++ b/encoder.go @@ -2,7 +2,6 @@ package rapidyenc /* #cgo CFLAGS: -I${SRCDIR}/rapidyenc -#cgo LDFLAGS: -L${SRCDIR}/lib -lrapidyenc #include "rapidyenc.h" */ import "C" diff --git a/rapidyenc_darwin_arm64.go b/rapidyenc_darwin_arm64.go new file mode 100644 index 0000000..969299f --- /dev/null +++ b/rapidyenc_darwin_arm64.go @@ -0,0 +1,6 @@ +package rapidyenc + +/* +#cgo LDFLAGS: ${SRCDIR}/lib/librapidyenc_darwin_arm64.a -lstdc++ +*/ +import "C"