From c7dd62f4360a1a7a857f0b4d637bf946c347c68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Thu, 12 Sep 2024 15:41:58 +0200 Subject: [PATCH] build rofl: Use x86_64-unknown-linux-musl target In order to be compatible with alpine linux builds we use in our containers, the target needs to be built for musl instead of gnu. --- cmd/rofl/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/rofl/build.go b/cmd/rofl/build.go index 842635aa..f65e3cb7 100644 --- a/cmd/rofl/build.go +++ b/cmd/rofl/build.go @@ -106,7 +106,7 @@ var ( // First build for the default target. fmt.Println("Building ELF binary...") - elfPath, err := cargo.Build(true, "x86_64-unknown-linux-gnu", features) + elfPath, err := cargo.Build(true, "x86_64-unknown-linux-musl", features) if err != nil { cobra.CheckErr(fmt.Errorf("failed to build ELF binary: %w", err)) }