Switch all base images to ct-ng based toolchains
This commit is contained in:
parent
71994e145a
commit
bdf1cc507a
9 changed files with 1509 additions and 27 deletions
|
@ -1,15 +1,22 @@
|
|||
ARG GH_REPO=btbn/ffmpeg-builds
|
||||
FROM ghcr.io/$GH_REPO/base:latest
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
RUN --mount=src=ct-ng-config,dst=/.config \
|
||||
git clone --filter=blob:none https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
|
||||
./bootstrap && \
|
||||
./configure --enable-local && \
|
||||
make -j$(nproc) && \
|
||||
cp /.config .config && \
|
||||
./ct-ng build && \
|
||||
cd / && \
|
||||
rm -rf ct-ng
|
||||
|
||||
# Prepare "cross" environment to heavily favour static builds
|
||||
RUN \
|
||||
apt-get -y install binutils-mingw-w64-x86-64 gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gfortran-mingw-w64-x86-64 && \
|
||||
apt-get -y clean && \
|
||||
rm /usr/lib/gcc/*-w64-mingw32/*/libstdc++*.dll* && \
|
||||
rm /usr/lib/gcc/*-w64-mingw32/*/libgcc_s* && \
|
||||
rm /usr/lib/gcc/*-w64-mingw32/*/*.dll.a && \
|
||||
rm /usr/*-w64-mingw32/lib/*.dll.a && \
|
||||
find /opt/ct-ng \
|
||||
-name "*.dll" \
|
||||
-or -name "*.dll.a" \
|
||||
-delete && \
|
||||
mkdir /opt/ffbuild
|
||||
|
||||
RUN rustup target add x86_64-pc-windows-gnu
|
||||
|
@ -17,7 +24,8 @@ RUN rustup target add x86_64-pc-windows-gnu
|
|||
ADD toolchain.cmake /toolchain.cmake
|
||||
ADD cross.meson /cross.meson
|
||||
|
||||
ENV FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32" \
|
||||
ENV PATH="/opt/ct-ng/bin:${PATH}" \
|
||||
FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32" \
|
||||
FFBUILD_TOOLCHAIN=x86_64-w64-mingw32 \
|
||||
FFBUILD_CROSS_PREFIX=x86_64-w64-mingw32- \
|
||||
FFBUILD_RUST_TARGET=x86_64-pc-windows-gnu \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue