mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 11:33:59 +00:00
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.
This commit is contained in:
@@ -101,6 +101,7 @@ var Musl = Library{
|
|||||||
"-I" + muslDir + "/src/internal",
|
"-I" + muslDir + "/src/internal",
|
||||||
"-I" + headerPath,
|
"-I" + headerPath,
|
||||||
"-I" + muslDir + "/include",
|
"-I" + muslDir + "/include",
|
||||||
|
"-fno-stack-protector",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sourceDir: "lib/musl/src",
|
sourceDir: "lib/musl/src",
|
||||||
|
|||||||
Reference in New Issue
Block a user