aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder
diff options
context:
space:
mode:
authorNia Waldvogel <[email protected]>2022-01-08 09:16:53 -0500
committerRon Evans <[email protected]>2022-01-09 18:46:15 +0100
commitfe21650010aa824a224f6a17b2a7eaa0f56e52a6 (patch)
tree309f2df3b5c3d60a9af66f47079689eb4eed2151 /builder
parentebd4969cde351cdc31eb142f14dd4c1ce1352de1 (diff)
downloadtinygo-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.go1
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",