Skip to content

Commit

Permalink
chore: add reference to library folders for go mod vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Sep 16, 2023
1 parent 6057b97 commit 2a77c37
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/x86_64-pc-windows-gnu/vendor.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package x8664pcwindowsgnu

// WARNING: Do not delete this file, otherwise `go mod vendor` will not download RLN static libraries
3 changes: 3 additions & 0 deletions libs/x86_64-unknown-linux-gnu/vendor.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package x8664unknownlinuxgnu

// WARNING: Do not delete this file, otherwise `go mod vendor` will not download RLN static libraries
3 changes: 3 additions & 0 deletions libs/x86_64-unknown-linux-musl/vendor.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package x8664unknownlinuxmusl

// WARNING: Do not delete this file, otherwise `go mod vendor` will not download RLN static libraries
6 changes: 6 additions & 0 deletions rln/link.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2a77c37

Please sign in to comment.