parent
4e8d866ce1
commit
b17f34fae3
26
Dockerfile
26
Dockerfile
@ -28,5 +28,29 @@ RUN cd build && \
|
|||||||
RUN cd build && \
|
RUN cd build && \
|
||||||
make DESTDIR=/rootfs install
|
make DESTDIR=/rootfs install
|
||||||
|
|
||||||
FROM bootstrap-c-toolchain AS final
|
FROM bootstrap-c-toolchain AS build-binutils
|
||||||
|
|
||||||
|
WORKDIR /source
|
||||||
|
|
||||||
|
RUN wget https://ftp.gnu.org/gnu/binutils/binutils-2.44.tar.xz -O binutils.tar.gz
|
||||||
|
|
||||||
|
RUN tar -xJf binutils.tar.xz --strip-components=1 && \
|
||||||
|
./configure \
|
||||||
|
--build=${BUILD} \
|
||||||
|
--host=${HOST} \
|
||||||
|
--prefix=/usr \
|
||||||
|
--disable-nls \
|
||||||
|
--disable-gdb \
|
||||||
|
--disable-gprofng \
|
||||||
|
--disable-werror \
|
||||||
|
--enable-deterministic-archives \
|
||||||
|
--enable-targets=aarch64-linux-musl,aarch64_be-linux-musl,i686-linux-musl,x86_64-linux-musl,x86_64-linux-muslx32,x86_64-pep
|
||||||
|
|
||||||
|
RUN make -j $(nproc)
|
||||||
|
|
||||||
|
RUN make DESTDIR=/rootfs install && \
|
||||||
|
rm -r /rootfs/usr/share/man
|
||||||
|
|
||||||
|
FROM busybox AS final
|
||||||
COPY --from=build-make /rootfs/ /
|
COPY --from=build-make /rootfs/ /
|
||||||
|
COPY --from=build-binutils /rootfs/ /
|
||||||
|
Loading…
x
Reference in New Issue
Block a user