diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-11-07 14:56:42 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-11-07 14:56:42 -0600 |
| commit | 2ec47dc1b2019c5b375f85115c2d6477bc3fdfee (patch) | |
| tree | 3748585ea35f31a79d8964d221dc0095de9e68d1 /init | |
| parent | fda0531cd8a75f9983b709ac828a491c61747f7e (diff) | |
| download | busybox-w32-packaging-2ec47dc1b2019c5b375f85115c2d6477bc3fdfee.tar.gz busybox-w32-packaging-2ec47dc1b2019c5b375f85115c2d6477bc3fdfee.tar.bz2 busybox-w32-packaging-2ec47dc1b2019c5b375f85115c2d6477bc3fdfee.zip | |
Set flags in config
no need to do it in init with sed.
Diffstat (limited to 'init')
| -rwxr-xr-x | init | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -2,11 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | rc-service networking start | 3 | rc-service networking start |
| 4 | apk update | 4 | apk update |
| 5 | apk add build-base xz mingw-w64-gcc | 5 | apk add build-base xz mingw-w64-gcc git |
| 6 | 6 | ||
| 7 | tar -xvzf include.tar.gz | 7 | tar -xvzf include.tar.gz |
| 8 | mv include/openssl /usr/x86_64-w64-mignw32/include | 8 | mv include/openssl/ /usr/x86_64-w64-mingw32/include |
| 9 | mv include/tls.h /usr/x86_64-w64-mignw32/include | 9 | mv include/tls.h /usr/x86_64-w64-mingw32/include |
| 10 | mv libtls.a /usr/x86_64-w64-mingw32/lib | 10 | mv libtls.a /usr/x86_64-w64-mingw32/lib |
| 11 | mv libssl.a /usr/x86_64-w64-mingw32/lib | 11 | mv libssl.a /usr/x86_64-w64-mingw32/lib |
| 12 | mv libcrypto.a /usr/x86_64-w64-mingw32/lib | 12 | mv libcrypto.a /usr/x86_64-w64-mingw32/lib |
| @@ -15,6 +15,5 @@ cd busybox-w32 | |||
| 15 | cp /root/busybox-w32-packaging/config .config | 15 | cp /root/busybox-w32-packaging/config .config |
| 16 | git apply /root/busybox-w32-packaging/test.patch | 16 | git apply /root/busybox-w32-packaging/test.patch |
| 17 | sed -i "s/CONFIG_EXTRA_CFLAGS=\"\"/CONFIG_EXTRA_CFLAGS=\"$CFLAGS\"/g" .config | 17 | sed -i "s/CONFIG_EXTRA_CFLAGS=\"\"/CONFIG_EXTRA_CFLAGS=\"$CFLAGS\"/g" .config |
| 18 | sed -i "s/CONFIG_EXTRA_LDLIBS=\"\"/CONFIG_EXTRA_LDLIBS=\"-ltls -lssl -lcrypto\"/g" .config | ||
| 19 | make | 18 | make |
| 20 | cp busybox.exe .. | 19 | cp busybox.exe .. |
