diff options
author | Hao Li <hayatelee@gmail.com> | 2024-02-19 15:07:42 +0800 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2024-03-01 14:48:49 +1300 |
commit | ace8d69df0fdc84ad4e51adcd251a6a2c87ec960 (patch) | |
tree | 899356b1d70672fcc4400c47659b265ca6d02675 /scripts/build | |
parent | d75c8c3b0f825d2995d9dd9bc4391c1bf3dc436e (diff) | |
download | crosstool-ng-ace8d69df0fdc84ad4e51adcd251a6a2c87ec960.tar.gz crosstool-ng-ace8d69df0fdc84ad4e51adcd251a6a2c87ec960.tar.bz2 crosstool-ng-ace8d69df0fdc84ad4e51adcd251a6a2c87ec960.zip |
glibc: fix the broken build for glibc 2.19 with gcc 13.
macos silicon SDK does not contain stat64 (and other LFS extension), and glibc 2.19 makes use of it.
Signed-off-by: Hao Li <hayatelee@gmail.com>
Diffstat (limited to 'scripts/build')
-rw-r--r-- | scripts/build/libc/glibc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 280eb124..34da4cfe 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -249,8 +249,8 @@ glibc_backend_once() build_cppflags="${build_cppflags} -I${CT_BUILDTOOLS_PREFIX_DIR}/include/" build_ldflags="${build_ldflags} -lintl -liconv" case "$CT_BUILD" in - *cygwin*|*freebsd*) - # Additionally, stat in FreeBSD, Cygwin, and possibly others + *cygwin*|*freebsd*|aarch64*darwin*) + # Additionally, stat in FreeBSD, Cygwin, Darwin arm64 and possibly others # is always 64bit, so replace struct stat64 with stat. build_cppflags="${build_cppflags} -Dstat64=stat" ;; |