From fe21650010aa824a224f6a17b2a7eaa0f56e52a6 Mon Sep 17 00:00:00 2001 From: Nia Waldvogel Date: Sat, 8 Jan 2022 09:16:53 -0500 Subject: [PATCH] builder (musl): add -fno-stack-protector Arch Linux has turned on the stack protector by default. This causes a crash in libc init because the stack protector uses TLS before it is initialized. --- builder/musl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/musl.go b/builder/musl.go index a54c092a..46ce92ee 100644 --- a/builder/musl.go +++ b/builder/musl.go @@ -101,6 +101,7 @@ var Musl = Library{ "-I" + muslDir + "/src/internal", "-I" + headerPath, "-I" + muslDir + "/include", + "-fno-stack-protector", } }, sourceDir: "lib/musl/src",