Skip to content

Instantly share code, notes, and snippets.

View lunaynx's full-sized avatar

Luna lunaynx

View GitHub Profile
@lunaynx
lunaynx / libimobiledevice.Dockerfile
Created June 20, 2024 23:12
Docker image to statically compile libimobiledevice suite binaries for Linux x86_64
FROM alpine AS base
ENV CONF_ARGS="--disable-shared" \
CMAKE_ARGS="-DBUILD_SHARED_LIBS=0" \
CC="clang-15" \
CXX="clang++-15" \
LD="ld.lld" \
LDFLAGS="-no-pie -static -static-libgcc -Wl,--no-dynamic-linker -Wl,-static"
RUN apk add --no-cache autoconf automake ca-certificates clang15 cmake eudev-dev gcc git gnupg libtool linux-headers make musl-dev ncurses-static ncurses-terminfo nghttp2-dev nghttp2-static openssl-dev openssl-libs-static pkgconf wget xz zlib-dev zlib-static
FROM base AS libplist