mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-03 23:57:32 -04:00
unix/linux: update to glibc 2.36
Support for LoongArch has been merged upstream. This allows to drop the loong64 specific glibc patches. Because the header file sys/mount.h of glibc 2.36 includes fcntl.h (commit 78a408ee7ba041fc8d5dbd5f67065b4a982c11e5), this will leads to duplicate definition of structure stat on MIPS64. In order to solve this error, use the custom type my_stat to generate the Go Stat_t. Change-Id: I888280d777d1c7089548acf1b3821762011d79b0 Reviewed-on: https://go-review.googlesource.com/c/sys/+/453555 Reviewed-by: xiaodong liu <teaofmoli@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
+10
-1
@@ -411,7 +411,16 @@ func (t *target) makeHeaders() error {
|
||||
|
||||
// Make the glibc headers we need for this architecture
|
||||
confScript := filepath.Join(GlibcDir, "configure")
|
||||
glibcConf := t.makeCommand(confScript, "--prefix="+filepath.Join(TempDir, t.GoArch), "--host="+t.GNUArch, "--enable-kernel="+MinKernel)
|
||||
glibcArgs := []string{"--prefix=" + filepath.Join(TempDir, t.GoArch), "--host=" + t.GNUArch}
|
||||
if t.LinuxArch == "loongarch" {
|
||||
// The minimum version requirement of the Loongarch for the kernel in glibc
|
||||
// is 5.19, if --enable-kernel is less than 5.19, glibc handles errors
|
||||
glibcArgs = append(glibcArgs, "--enable-kernel=5.19.0")
|
||||
} else {
|
||||
glibcArgs = append(glibcArgs, "--enable-kernel="+MinKernel)
|
||||
}
|
||||
glibcConf := t.makeCommand(confScript, glibcArgs...)
|
||||
|
||||
glibcConf.Dir = buildDir
|
||||
if err := glibcConf.Run(); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user