Merge pull request #236 from jcfr/windows-install-mxe

common.windows: Optimize image size removing MXE sources
This commit is contained in:
Jean-Christophe Fillion-Robin 2018-06-12 04:44:18 +00:00 committed by GitHub
commit 56e3ad71aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ ARG DEBIAN_FRONTEND=noninteractive
#
RUN \
apt-get update && \
apt-get -y install \
apt-get install --no-install-recommends --yes \
autoconf \
automake \
autopoint \
@ -91,6 +91,11 @@ RUN \
cd /usr/src/mxe && \
make -j$(nproc) && \
#
# Cleanup: By keeping the MXE build system (Makefile, ...), derived images will be able to install
# additional packages.
#
rm -rf .git log pkg && \
#
# Update MXE toolchain file
#
echo 'set(CMAKE_CROSSCOMPILING_EMULATOR "/usr/bin/wine")' >> ${CMAKE_TOOLCHAIN_FILE} && \