add gcc path hack for ninja

This commit is contained in:
Lance R. Vick 2024-02-10 03:28:57 -08:00
parent e356072666
commit 531f33aa56
No known key found for this signature in database
GPG key ID: 8E47A1EC35A1551D

View file

@ -18,10 +18,13 @@ COPY --from=openssl . /
RUN tar -xf ${SRC_FILE}
WORKDIR ninja-${VERSION}
ADD *.patch .
# HACK: figure out why gcc package puts these in the wrong path at install time
COPY --from=gcc /usr/lib64/* /usr/lib/
RUN --network=none <<-EOF
set -eux
cp -R /usr/lib64/* /usr/lib/
patch -p1 < fix-musl.patch
python3 ./configure.py --bootstrap
python ./configure.py --bootstrap
EOF
FROM build as install