Skip to content

Commit 974ed62

Browse files
committed
add -D_LARGEFILE64_SOURCE to CFLAGS for compatibility
1 parent 905cafc commit 974ed62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/ci/docker/scripts/musl-toolchain.sh

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ shift
4343
# debuggers can't walk the stack, etc. Fixes #90103.
4444
export CFLAGS="-fPIC -g1 $CFLAGS"
4545

46+
# The versions of the libc crate from 0.2.145 provide LFS64 aliases to their non-LFS64
47+
# counterparts. Configure the builtin musl to still provide LFS64 symbols to not break
48+
# pre-0.2.145 versions until enough of the ecosystem has updated.
49+
export CFLAGS="-D_LARGEFILE64_SOURCE $CFLAGS"
50+
4651
git clone https://github.com/richfelker/musl-cross-make # -b v0.9.9
4752
cd musl-cross-make
4853
# A version that includes support for building musl 1.2.5

0 commit comments

Comments
 (0)