Skip to content

Commit

Permalink
add -D_LARGEFILE64_SOURCE to CFLAGS for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Jul 24, 2024
1 parent 905cafc commit 974ed62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ci/docker/scripts/musl-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ shift
# debuggers can't walk the stack, etc. Fixes #90103.
export CFLAGS="-fPIC -g1 $CFLAGS"

# The versions of the libc crate from 0.2.145 provide LFS64 aliases to their non-LFS64
# counterparts. Configure the builtin musl to still provide LFS64 symbols to not break
# pre-0.2.145 versions until enough of the ecosystem has updated.
export CFLAGS="-D_LARGEFILE64_SOURCE $CFLAGS"

git clone /~https://github.com/richfelker/musl-cross-make # -b v0.9.9
cd musl-cross-make
# A version that includes support for building musl 1.2.5
Expand Down

0 comments on commit 974ed62

Please sign in to comment.