diff options
author | Ron Yorston <rmy@pobox.com> | 2015-07-03 14:12:47 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-07-03 14:12:47 +0100 |
commit | 9fc98788e4fb1ea1f330d44c8b2019b3fe6444f7 (patch) | |
tree | 7620816f022d765923bbd678dcc9aa968cc7f009 /Config.in | |
parent | 171bc72f6a8f996376ca02e44edd56409b27a927 (diff) | |
download | busybox-w32-9fc98788e4fb1ea1f330d44c8b2019b3fe6444f7.tar.gz busybox-w32-9fc98788e4fb1ea1f330d44c8b2019b3fe6444f7.tar.bz2 busybox-w32-9fc98788e4fb1ea1f330d44c8b2019b3fe6444f7.zip |
Allow different ways to manipulate environment for XP vs 64-bit
Commit fa147bd 'Use putenv to implement unsetenv/clearenv' allowed
BusyBox to run on ReactOS but broke it on Windows XP so it was
reverted.
It turns out that the same change is required on 64-bit Windows.
Reinstate the 'safe' environment manipulation code but make it a
configuration option. Add a config file for 64-bit Windows that
does the right thing.
Diffstat (limited to 'Config.in')
-rw-r--r-- | Config.in | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -642,6 +642,16 @@ config GLOBBING | |||
642 | the BusyBox binary to handle wildcard expansion using the C runtime | 642 | the BusyBox binary to handle wildcard expansion using the C runtime |
643 | set this to 'Y'. | 643 | set this to 'Y'. |
644 | 644 | ||
645 | config SAFE_ENV | ||
646 | bool "Manipulate the environment through safe API calls" | ||
647 | default n | ||
648 | depends on PLATFORM_MINGW32 | ||
649 | help | ||
650 | Enable this option to use safe API calls when clearing environment | ||
651 | variables. This is necessary if BusyBox is to run on ReactOS or | ||
652 | 64-bit Windows. The default is 'N', which must be used if BusyBox | ||
653 | is to run on Windows XP. | ||
654 | |||
645 | config CROSS_COMPILER_PREFIX | 655 | config CROSS_COMPILER_PREFIX |
646 | string "Cross Compiler prefix" | 656 | string "Cross Compiler prefix" |
647 | default "" | 657 | default "" |