From 2a77c3734dd190404c072d6378140045aa7aafe5 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Sat, 16 Sep 2023 13:03:46 -0400 Subject: [PATCH] chore: add reference to library folders for go mod vendor --- libs/x86_64-pc-windows-gnu/vendor.go | 3 +++ libs/x86_64-unknown-linux-gnu/vendor.go | 3 +++ libs/x86_64-unknown-linux-musl/vendor.go | 3 +++ rln/link.go | 6 ++++++ 4 files changed, 15 insertions(+) create mode 100644 libs/x86_64-pc-windows-gnu/vendor.go create mode 100644 libs/x86_64-unknown-linux-gnu/vendor.go create mode 100644 libs/x86_64-unknown-linux-musl/vendor.go diff --git a/libs/x86_64-pc-windows-gnu/vendor.go b/libs/x86_64-pc-windows-gnu/vendor.go new file mode 100644 index 0000000..fc2571f --- /dev/null +++ b/libs/x86_64-pc-windows-gnu/vendor.go @@ -0,0 +1,3 @@ +package x8664pcwindowsgnu + +// WARNING: Do not delete this file, otherwise `go mod vendor` will not download RLN static libraries diff --git a/libs/x86_64-unknown-linux-gnu/vendor.go b/libs/x86_64-unknown-linux-gnu/vendor.go new file mode 100644 index 0000000..e91e8e0 --- /dev/null +++ b/libs/x86_64-unknown-linux-gnu/vendor.go @@ -0,0 +1,3 @@ +package x8664unknownlinuxgnu + +// WARNING: Do not delete this file, otherwise `go mod vendor` will not download RLN static libraries diff --git a/libs/x86_64-unknown-linux-musl/vendor.go b/libs/x86_64-unknown-linux-musl/vendor.go new file mode 100644 index 0000000..5881b3a --- /dev/null +++ b/libs/x86_64-unknown-linux-musl/vendor.go @@ -0,0 +1,3 @@ +package x8664unknownlinuxmusl + +// WARNING: Do not delete this file, otherwise `go mod vendor` will not download RLN static libraries diff --git a/rln/link.go b/rln/link.go index af23301..bc33132 100644 --- a/rln/link.go +++ b/rln/link.go @@ -1,5 +1,11 @@ package rln +import ( + _ "github.com/waku-org/go-zerokit-rln-x86_64/libs/x86_64-pc-windows-gnu" + _ "github.com/waku-org/go-zerokit-rln-x86_64/libs/x86_64-unknown-linux-gnu" + _ "github.com/waku-org/go-zerokit-rln-x86_64/libs/x86_64-unknown-linux-musl" +) + /* #cgo LDFLAGS: -lrln -ldl -lm #cgo linux,amd64,musl,!android LDFLAGS:-L${SRCDIR}/../libs/x86_64-unknown-linux-musl