summaryrefslogtreecommitdiff
path: root/init
blob: 5ae9d4406a43079ee48d01298770b6d4ade58862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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 dlfcn-win32
./configure
make
cp libdl.a /usr/x86_64-w64-mingw32/lib
cd /root

rm -rf dlfcn-win32
rm -rf /root/image-mingw64
rm -rf /var/cache/apk/*