|
5 | 5 | -ARG ARCH=x86_64-w64-mingw32
|
6 | 6 | +ARG ARCH=i686-w64-mingw32
|
7 | 7 |
|
8 |
| -@@ -92,2 +92,3 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-headers/configure \ |
9 |
| - --host=$ARCH \ |
| 8 | +@@ -93,2 +93,3 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-headers/configure \ |
| 9 | + --with-default-msvcrt=msvcrt-os \ |
10 | 10 | + --with-default-win32-winnt=0x0501 \
|
11 | 11 | && make -j$(nproc) \
|
12 |
| -@@ -98,2 +99,5 @@ RUN ln -s $ARCH mingw |
| 12 | +@@ -99,2 +100,5 @@ RUN ln -s $ARCH mingw |
13 | 13 |
|
14 | 14 | +# Disable UTF-8 manifest for Windows XP (#58)
|
15 | 15 | +RUN echo >/gcc-$GCC_VERSION/gcc/config/i386/winnt-utf8.manifest
|
16 | 16 | +
|
17 | 17 | WORKDIR /x-gcc
|
18 |
| -@@ -103,2 +107,3 @@ RUN /gcc-$GCC_VERSION/configure \ |
| 18 | +@@ -104,2 +108,3 @@ RUN /gcc-$GCC_VERSION/configure \ |
19 | 19 | --target=$ARCH \
|
20 | 20 | + --with-arch=pentium4 \
|
21 | 21 | --enable-static \
|
22 |
| -@@ -130,4 +135,4 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-crt/configure \ |
| 22 | +@@ -132,4 +137,4 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-crt/configure \ |
23 | 23 | --disable-dependency-tracking \
|
24 | 24 | - --disable-lib32 \
|
25 | 25 | - --enable-lib64 \
|
26 | 26 | + --enable-lib32 \
|
27 | 27 | + --disable-lib64 \
|
28 | 28 | CFLAGS="-Os" \
|
29 |
| -@@ -214,2 +219,3 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-headers/configure \ |
30 |
| - --host=$ARCH \ |
| 29 | +@@ -217,2 +222,3 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-headers/configure \ |
| 30 | + --with-default-msvcrt=msvcrt-os \ |
31 | 31 | + --with-default-win32-winnt=0x0501 \
|
32 | 32 | && make -j$(nproc) \
|
33 |
| -@@ -223,4 +229,4 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-crt/configure \ |
| 33 | +@@ -227,4 +233,4 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-crt/configure \ |
34 | 34 | --disable-dependency-tracking \
|
35 | 35 | - --disable-lib32 \
|
36 | 36 | - --enable-lib64 \
|
37 | 37 | + --enable-lib32 \
|
38 | 38 | + --disable-lib64 \
|
39 | 39 | CFLAGS="-Os" \
|
40 |
| -@@ -249,2 +255,3 @@ RUN /gcc-$GCC_VERSION/configure \ |
| 40 | +@@ -239,2 +245,3 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-libraries/winpthreads/configure \ |
41 | 41 | --host=$ARCH \
|
42 | 42 | + --with-arch=pentium4 \
|
43 | 43 | --enable-static \
|
0 commit comments