libffi

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-gcc . /
ADD fetch/libffi-${VERSION}.tar.gz .
WORKDIR /libffi-${VERSION}
RUN --network=none <<-EOF
	set -ex
	./configure \
		--prefix=/usr \
		--enable-pax_emutrap \
		--enable-portable-binary \
		--disable-exec-static-tramp \
		--without-gcc-arch
	make -j "$(nproc)"
	make DESTDIR="/rootfs" install
	mv /rootfs/usr/lib64/* /rootfs/usr/lib/
	rm -rf /rootfs/usr/lib64
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /