|
1 | 1 | --- a/Dockerfile
|
2 | 2 | +++ b/Dockerfile
|
3 |
| -@@ -62,3 +62,3 @@ COPY src/w64devkit.c src/w64devkit.ico \ |
| 3 | +@@ -65,3 +65,3 @@ COPY src/w64devkit.c src/w64devkit.ico \ |
4 | 4 |
|
5 | 5 | -ARG ARCH=x86_64-w64-mingw32
|
6 | 6 | +ARG ARCH=i686-w64-mingw32
|
7 | 7 |
|
8 |
| -@@ -87,2 +87,3 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-headers/configure \ |
| 8 | +@@ -92,2 +92,3 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-headers/configure \ |
9 | 9 | --host=$ARCH \
|
10 | 10 | + --with-default-win32-winnt=0x0501 \
|
11 | 11 | && make -j$(nproc) \
|
12 |
| -@@ -100,2 +101,3 @@ RUN cat $PREFIX/src/gcc-*.patch | patch -d/gcc-$GCC_VERSION -p1 \ |
| 12 | +@@ -98,2 +99,5 @@ RUN ln -s $ARCH mingw |
| 13 | + |
| 14 | ++# Disable UTF-8 manifest for Windows XP (#58) |
| 15 | ++RUN echo >/gcc-$GCC_VERSION/gcc/config/i386/winnt-utf8.manifest |
| 16 | ++ |
| 17 | + WORKDIR /x-gcc |
| 18 | +@@ -103,2 +107,3 @@ RUN /gcc-$GCC_VERSION/configure \ |
13 | 19 | --target=$ARCH \
|
14 | 20 | + --with-arch=pentium4 \
|
15 | 21 | --enable-static \
|
16 |
| -@@ -127,4 +129,4 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-crt/configure \ |
| 22 | +@@ -130,4 +135,4 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-crt/configure \ |
17 | 23 | --disable-dependency-tracking \
|
18 | 24 | - --disable-lib32 \
|
19 | 25 | - --enable-lib64 \
|
20 | 26 | + --enable-lib32 \
|
21 | 27 | + --disable-lib64 \
|
22 | 28 | CFLAGS="-Os" \
|
23 |
| -@@ -211,2 +213,3 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-headers/configure \ |
| 29 | +@@ -214,2 +219,3 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-headers/configure \ |
24 | 30 | --host=$ARCH \
|
25 | 31 | + --with-default-win32-winnt=0x0501 \
|
26 | 32 | && make -j$(nproc) \
|
27 |
| -@@ -220,4 +223,4 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-crt/configure \ |
| 33 | +@@ -223,4 +229,4 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-crt/configure \ |
28 | 34 | --disable-dependency-tracking \
|
29 | 35 | - --disable-lib32 \
|
30 | 36 | - --enable-lib64 \
|
31 | 37 | + --enable-lib32 \
|
32 | 38 | + --disable-lib64 \
|
33 | 39 | CFLAGS="-Os" \
|
34 |
| -@@ -246,2 +249,3 @@ RUN /gcc-$GCC_VERSION/configure \ |
| 40 | +@@ -249,2 +255,3 @@ RUN /gcc-$GCC_VERSION/configure \ |
35 | 41 | --host=$ARCH \
|
36 | 42 | + --with-arch=pentium4 \
|
37 | 43 | --enable-static \
|
0 commit comments