Skip to content

Commit

Permalink
Incorrect command for building ARM64 plugins for on-premise #231
Browse files Browse the repository at this point in the history
  • Loading branch information
alombarte committed Jan 23, 2025
1 parent 4904e45 commit 44ecae4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extending/writing-plugins.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
lastmod: 2024-11-27
lastmod: 2025-01-23
date: 2019-01-14
linktitle: Writing plugins
title: Writing and building custom plugins
Expand Down Expand Up @@ -112,14 +112,14 @@ go build -ldflags='-extldflags=-fuse-ld=bfd -extld=aarch64-linux-musl-gcc' \

And the same command, changing the builder, when you need **on-premises** plugins for ARM64:

{{< terminal title="Build your plugin for Alpine ARM64" >}}
{{< terminal title="Build your plugin for non-Alpine ARM64" >}}
docker run -it -v "$PWD:/app" -w /app \
-e "CGO_ENABLED=1" \
-e "CC=aarch64-linux-musl-gcc" \
-e "CC=aarch64-linux-gnu-gcc" \
-e "GOARCH=arm64" \
-e "GOHOSTARCH=amd64" \
{{< product image_plugin_builder >}}:{{< product latest_version >}}-linux-generic \
go build -ldflags='-extldflags=-fuse-ld=bfd -extld=aarch64-linux-musl-gcc' \
go build -ldflags='-extldflags=-fuse-ld=bfd -extld=aarch64-linux-gnu-gcc' \
-buildmode=plugin -o yourplugin.so .
{{< /terminal >}}

Expand Down

0 comments on commit 44ecae4

Please sign in to comment.