2021-01-12 14:31:00 +01:00
|
|
|
FROM @PROTONSDK_URLBASE@/binutils-@ARCH@-w64-mingw32:@BINUTILS_VERSION@ AS binutils
|
|
|
|
FROM @PROTONSDK_URLBASE@/mingw-headers-@ARCH@:@MINGW_VERSION@ AS mingw-headers
|
|
|
|
FROM @PROTONSDK_URLBASE@/mingw-gcc-@ARCH@:@MINGW_VERSION@ AS mingw-gcc
|
|
|
|
FROM @PROTONSDK_URLBASE@/build-base-@ARCH@:latest AS build
|
|
|
|
COPY --from=binutils /opt/usr /usr
|
|
|
|
COPY --from=mingw-headers /opt/usr /usr
|
|
|
|
COPY --from=mingw-gcc /opt/usr /usr
|
|
|
|
RUN wget -q @MINGW_URLBASE@/@MINGW_SOURCE@ \
|
|
|
|
&& echo '@MINGW_SHA256@ @MINGW_SOURCE@' | sha256sum -c - \
|
|
|
|
&& tar xf @MINGW_SOURCE@ -C /tmp && rm @MINGW_SOURCE@ \
|
|
|
|
&& cd /tmp/mingw-w64-v@MINGW_VERSION@/mingw-w64-crt \
|
|
|
|
&& ./configure --quiet \
|
|
|
|
--prefix=/usr/@ARCH@-w64-mingw32/ \
|
|
|
|
--host=@ARCH@-w64-mingw32 \
|
|
|
|
--enable-wildcard \
|
2022-12-11 15:06:06 +01:00
|
|
|
@ARCH_FLAGS@ \
|
|
|
|
MAKEINFO=true \
|
2021-01-12 14:31:00 +01:00
|
|
|
&& make --quiet -j@J@ MAKEINFO=true \
|
|
|
|
&& make --quiet -j@J@ MAKEINFO=true install-strip DESTDIR=/opt \
|
|
|
|
&& rm -rf /opt/usr/share/doc /opt/usr/share/info /opt/usr/share/man \
|
|
|
|
&& rm -rf /tmp/mingw-w64-v@MINGW_VERSION@
|