diff options
author | Nia Waldvogel <[email protected]> | 2022-01-08 09:16:53 -0500 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-01-09 18:46:15 +0100 |
commit | fe21650010aa824a224f6a17b2a7eaa0f56e52a6 (patch) | |
tree | 309f2df3b5c3d60a9af66f47079689eb4eed2151 /builder | |
parent | ebd4969cde351cdc31eb142f14dd4c1ce1352de1 (diff) | |
download | tinygo-fe21650010aa824a224f6a17b2a7eaa0f56e52a6.tar.gz tinygo-fe21650010aa824a224f6a17b2a7eaa0f56e52a6.zip |
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.
Diffstat (limited to 'builder')
-rw-r--r-- | builder/musl.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builder/musl.go b/builder/musl.go index a54c092a3..46ce92ee3 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", |