diff --git a/builder/musl.go b/builder/musl.go index 4768dbf92b..a6699ad8d1 100644 --- a/builder/musl.go +++ b/builder/musl.go @@ -138,11 +138,18 @@ var libMusl = Library{ "unistd/*.c", "process/*.c", } + if arch == "arm" { // These files need to be added to the start for some reason. globs = append([]string{"thread/arm/*.c"}, globs...) } + if arch != "aarch64" && arch != "mips" { + //aarch64 and mips have no architecture specific code, either they + // are not supported or don't need any? + globs = append([]string{"process/" + arch + "/*.s"}, globs...) + } + var sources []string seenSources := map[string]struct{}{} basepath := goenv.Get("TINYGOROOT") + "/lib/musl/src/"