fix gcc/musl paths

This commit is contained in:
Lance Vick 2023-11-18 16:44:16 -08:00
parent ebfcd33fde
commit 86bdb0af3b
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
2 changed files with 11 additions and 4 deletions

View File

@ -21,6 +21,7 @@ RUN set -ex; \
--prefix /usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--disable-cet \
--disable-fixed-point \
--disable-libstdcxx-pch \

View File

@ -9,9 +9,15 @@ RUN echo "${SRC_HASH} musl-${SRC_VERSION}.tar.gz" | sha256sum -c
RUN tar -xzf musl-${SRC_VERSION}.tar.gz
WORKDIR musl-${SRC_VERSION}
RUN set -ex; \
./configure \
--prefix=/; \
make DESTDIR=/rootfs install;
./configure \
--build=x86_64-linux-musl \
--host=x86_64-linux-musl \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var; \
make DESTDIR=/home/user/rootfs install;
FROM scratch
COPY --from=build /rootfs /
COPY --from=build /home/user/rootfs /