summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-01 15:36:34 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-01 15:37:13 +0100
commitb51e5b5b30e3c3ac58305013ab1a268d18accf12 (patch)
tree062d03bb3b8e4f61018094fc62480796f7a2924c
parent56e65da14612516103e152524d19763ceb28013f (diff)
Docs: Add info about -tags=release for building
-rw-r--r--docs/src/gettingstarted/building/go.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/src/gettingstarted/building/go.md b/docs/src/gettingstarted/building/go.md
index 84c39fd..7d07ca8 100644
--- a/docs/src/gettingstarted/building/go.md
+++ b/docs/src/gettingstarted/building/go.md
@@ -70,3 +70,9 @@ Usually you won't need to do this, as changes in the library should automaticall
Specify `CLEAN_ALL=1` to also remove downloaded dependencies for some wrappers. You can clean individual wrappers by
executing clean in their directories, or specify `WRAPPERS=...`.
+## Note on releases
+Releases are build with the go tag "release" (add flag "-tags=release") to bundle the discovery JSON files and embed them in the shared library. See the [make_release](https://github.com/eduvpn/eduvpn-common/blob/main/make_release.sh) script on how we bundle the files. A full command without the Makefile to build this library is:
+
+```bash
+go build -o lib/libeduvpn_common-${VERSION}.so -tags=release -buildmode=c-shared ./exports
+```