@@ -16,7 +16,7 @@ ffbuild_dockerlayer() {
16
16
17
17
ffbuild_dockerfinal () {
18
18
[[ $TARGET == winarm* ]] && return 0
19
- to_df " COPY --from=${PREVLAYER} /opt/mingw/. /"
19
+ to_df " COPY --link -- from=${PREVLAYER} /opt/mingw/. /"
20
20
}
21
21
22
22
ffbuild_dockerdl () {
@@ -26,42 +26,75 @@ ffbuild_dockerdl() {
26
26
ffbuild_dockerbuild () {
27
27
[[ $TARGET == winarm* ]] && return 0
28
28
29
- cd mingw-w64-headers
30
-
31
- unset CFLAGS
32
- unset CXXFLAGS
33
- unset LDFLAGS
34
- unset PKG_CONFIG_LIBDIR
35
-
36
29
if [[ -z " $COMPILER_SYSROOT " ]]; then
37
30
COMPILER_SYSROOT=" $( ${CC} -print-sysroot) /usr/${FFBUILD_TOOLCHAIN} "
38
31
fi
39
32
40
- local myconf=(
41
- --prefix=" $COMPILER_SYSROOT "
42
- --host=" $FFBUILD_TOOLCHAIN "
43
- --with-default-win32-winnt=" 0x601"
44
- --with-default-msvcrt=ucrt
45
- --enable-idl
33
+ unset CC CXX LD AR CPP LIBS CCAS
34
+ unset CFLAGS CXXFLAGS LDFLAGS CPPFLAGS CCASFLAGS
35
+ unset PKG_CONFIG_LIBDIR
36
+
37
+ # ##
38
+ # ## mingw-w64-headers
39
+ # ##
40
+ (
41
+ cd mingw-w64-headers
42
+
43
+ local myconf=(
44
+ --prefix=" $COMPILER_SYSROOT "
45
+ --host=" $FFBUILD_TOOLCHAIN "
46
+ --with-default-win32-winnt=" 0x601"
47
+ --with-default-msvcrt=ucrt
48
+ --enable-idl
49
+ --enable-sdk=all
50
+ --enable-secure-api
51
+ )
52
+
53
+ ./configure " ${myconf[@]} "
54
+ make -j$( nproc)
55
+ make install DESTDIR=" /opt/mingw"
46
56
)
47
57
48
- ./configure " ${myconf[@]} "
49
- make -j$( nproc)
50
- make install DESTDIR=" /opt/mingw"
58
+ cp -a /opt/mingw/. /
59
+
60
+ # ##
61
+ # ## mingw-w64-crt
62
+ # ##
63
+ (
64
+ cd mingw-w64-crt
51
65
52
- cd ../mingw-w64-libraries/winpthreads
66
+ local myconf=(
67
+ --prefix=" $COMPILER_SYSROOT "
68
+ --host=" $FFBUILD_TOOLCHAIN "
69
+ --with-default-msvcrt=ucrt
70
+ --enable-wildcard
71
+ )
53
72
54
- local myconf=(
55
- --prefix=" $COMPILER_SYSROOT "
56
- --host=" $FFBUILD_TOOLCHAIN "
57
- --with-pic
58
- --disable-shared
59
- --enable-static
73
+ ./configure " ${myconf[@]} "
74
+ make -j$( nproc)
75
+ make install DESTDIR=" /opt/mingw"
60
76
)
61
77
62
- ./configure " ${myconf[@]} "
63
- make -j$( nproc)
64
- make install DESTDIR=" /opt/mingw"
78
+ cp -a /opt/mingw/. /
79
+
80
+ # ##
81
+ # ## mingw-w64-libraries/winpthreads
82
+ # ##
83
+ (
84
+ cd mingw-w64-libraries/winpthreads
85
+
86
+ local myconf=(
87
+ --prefix=" $COMPILER_SYSROOT "
88
+ --host=" $FFBUILD_TOOLCHAIN "
89
+ --with-pic
90
+ --disable-shared
91
+ --enable-static
92
+ )
93
+
94
+ ./configure " ${myconf[@]} "
95
+ make -j$( nproc)
96
+ make install DESTDIR=" /opt/mingw"
97
+ )
65
98
}
66
99
67
100
ffbuild_configure () {
0 commit comments