diff options
author | Ron Yorston <rmy@pobox.com> | 2022-10-30 08:25:45 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-10-30 08:25:45 +0000 |
commit | 7390f29cfc9a3cc0636e20f84f24fbd05f821720 (patch) | |
tree | ee040facd1f276cb5daf733092f137527c75630f /applets | |
parent | d71cb67ff91762ae78e87440b87d7c9a160b2937 (diff) | |
download | busybox-w32-7390f29cfc9a3cc0636e20f84f24fbd05f821720.tar.gz busybox-w32-7390f29cfc9a3cc0636e20f84f24fbd05f821720.tar.bz2 busybox-w32-7390f29cfc9a3cc0636e20f84f24fbd05f821720.zip |
build system: allow building with w64devkit
Make some adjustments to the build system to allow busybox-w32
to be built with w64devkit:
- Strip drive prefix from CURDIR in Makefile to avoid confusing
make with colons.
- Limit file redirection to a subshell in the usage_compressed and
embedded_scripts scripts. Otherwise it isn't possible to move
the open generated file on Windows.
- Change the option tests in Kbuild.include to allow for /dev/null
not existing on Windows.
- Create host binaries without a '.exe' extension. Otherwise they're
rebuilt more often than necessary.
- Modify split-include.c to allow for Windows' popen() not expanding
wildcards.
(GitHub issue #239)
Diffstat (limited to 'applets')
-rwxr-xr-x | applets/usage_compressed | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/applets/usage_compressed b/applets/usage_compressed index 36fc2a007..94d70f33b 100755 --- a/applets/usage_compressed +++ b/applets/usage_compressed | |||
@@ -16,6 +16,7 @@ if test $? != 0; then | |||
16 | exit 1 | 16 | exit 1 |
17 | fi | 17 | fi |
18 | 18 | ||
19 | ( | ||
19 | exec >"$target.$$" | 20 | exec >"$target.$$" |
20 | 21 | ||
21 | echo '#define UNPACKED_USAGE "" \' | 22 | echo '#define UNPACKED_USAGE "" \' |
@@ -58,5 +59,6 @@ echo '#define PACKED_USAGE \' | |||
58 | -e 's/\(...\)/0\1,/g' \ | 59 | -e 's/\(...\)/0\1,/g' \ |
59 | -e 's/$/ \\/' | 60 | -e 's/$/ \\/' |
60 | echo '' | 61 | echo '' |
62 | ) | ||
61 | 63 | ||
62 | mv -- "$target.$$" "$target" | 64 | mv -- "$target.$$" "$target" |