summaryrefslogtreecommitdiff
path: root/init
blob: a160209d34f2efd792e94acd2d66f6ab2a2bd741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -ex

rc-service networking start

apk add alpine-base mingw-w64-gcc make patch lua

# Link all the mingw executables to pretend to be a real gcc build system
rm /usr/bin/strings
ls /usr/bin/x86_64-w64-mingw32-* \
| sed 's;/usr/bin/x86_64-w64-mingw32-;;g' \
| xargs -I {} ln -s /usr/bin/x86_64-w64-mingw32-{} /usr/bin/{}

cd dlfnc-win32
./configure
make
cp libdl.a /usr/x86_64-w64-mingw32/lib
cd /

rm -rf dlfcn-win32
rm -rf /root/image-mingw64