blob: 348c86b2bc9a699fc5dd5c4e5092799a1a5f6c35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh -ex
rc-service networking start
apk update
apk add build-base xz mingw-w64-gcc git
tar -xvzf include.tar.gz
mv include/openssl/ /usr/x86_64-w64-mingw32/include
mv include/tls.h /usr/x86_64-w64-mingw32/include
mv libtls.a /usr/x86_64-w64-mingw32/lib
mv libssl.a /usr/x86_64-w64-mingw32/lib
mv libcrypto.a /usr/x86_64-w64-mingw32/lib
cd busybox-w32
cp /root/busybox-w32-packaging/config .config
git apply /root/busybox-w32-packaging/libressl.patch
# For some reason this code only causes errors on -O0
if [ -n "$ZERO_PATCH" ]; then
git apply /root/busybox-w32-packaging/zero.patch
fi
sed -i "s/CONFIG_EXTRA_CFLAGS=\"\"/CONFIG_EXTRA_CFLAGS=\"$CFLAGS\"/g" .config
make
cp busybox.exe ..
|