common.windows: Better optimization to support package install in derived images

This commit is contained in:
Jean-Christophe Fillion-Robin 2018-06-11 09:25:14 -04:00
parent eabac20a8a
commit 73e556f06b
No known key found for this signature in database
GPG Key ID: BAF1E1AEB9097A41

View File

@ -91,9 +91,10 @@ RUN \
cd /usr/src/mxe && \ cd /usr/src/mxe && \
make -j$(nproc) && \ make -j$(nproc) && \
# #
# Cleanup: Remove all expect "usr" directory # Cleanup: By keeping the MXE build system (Makefile, ...), derived images will be able to install
# additional packages.
# #
find . -maxdepth 1 -type d \( -path ./usr -o -path ".$" \) -prune -o -print -exec rm -rf {} \; && \ rm -rf .git log pkg && \
# #
# Update MXE toolchain file # Update MXE toolchain file
# #