0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-01-06 13:10:41 +00:00
libsql/Dockerfile.musl
Lucio Franco e83b13b1d2 libsql: fix musl builds failing due to fcntl64
This fixes a build issue with musl based systems that do not have
fcntl64 in their libc. This is done by setting `FILE_OFFSET_BITS=32`
only for musl targets. This forces the compiler to not convert `fcntl`
to `fcntl64`.
2024-09-09 13:40:44 -04:00

18 lines
492 B
Docker

# A dockerfile that can be used to build musl targets
# currently this is setup to run the most basic libsql example
# to force the linker to resolve. This was able to reproduce the
# fcntl64 issues + other issues that require custom flags for musl.
FROM messense/rust-musl-cross:x86_64-musl
RUN rustup target add x86_64-unknown-linux-musl
COPY . .
RUN rm rust-toolchain.toml
ENV LIBSQL_DEV=1
RUN apt-get install -y cmake
RUN cargo run -p libsql --example example --features encryption