diff options
author | Ron Yorston <rmy@pobox.com> | 2017-01-08 08:56:43 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-01-08 08:56:43 +0000 |
commit | 3ef86d069577b8a44ebe3aa890c6e97ea31d0d56 (patch) | |
tree | 064587c9b2080dba963bf8d93861b8019cb306ed /libbb | |
parent | c66975af0b5335b9cdd156206767756237bd814b (diff) | |
parent | 86584e134eec1a81298149f8c04c77727f6dccb9 (diff) | |
download | busybox-w32-3ef86d069577b8a44ebe3aa890c6e97ea31d0d56.tar.gz busybox-w32-3ef86d069577b8a44ebe3aa890c6e97ea31d0d56.tar.bz2 busybox-w32-3ef86d069577b8a44ebe3aa890c6e97ea31d0d56.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index f11384962..6732f89a9 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -52,6 +52,32 @@ | |||
52 | 52 | ||
53 | #include "usage_compressed.h" | 53 | #include "usage_compressed.h" |
54 | 54 | ||
55 | |||
56 | /* "Do not compress usage text if uncompressed text is small | ||
57 | * and we don't include bunzip2 code for other reasons" | ||
58 | * | ||
59 | * Useful for mass one-applet rebuild (bunzip2 code is ~2.7k). | ||
60 | * | ||
61 | * Unlike BUNZIP2, if FEATURE_SEAMLESS_BZ2 is on, bunzip2 code is built but | ||
62 | * still may be unused if none of the selected applets calls open_zipped() | ||
63 | * or its friends; we test for (FEATURE_SEAMLESS_BZ2 && <APPLET>) instead. | ||
64 | * For example, only if TAR and FEATURE_SEAMLESS_BZ2 are both selected, | ||
65 | * then bunzip2 code will be linked in anyway, and disabling help compression | ||
66 | * would be not optimal: | ||
67 | */ | ||
68 | #if UNPACKED_USAGE_LENGTH < 4*1024 \ | ||
69 | && !(ENABLE_FEATURE_SEAMLESS_BZ2 && ENABLE_TAR) \ | ||
70 | && !(ENABLE_FEATURE_SEAMLESS_BZ2 && ENABLE_MODPROBE) \ | ||
71 | && !(ENABLE_FEATURE_SEAMLESS_BZ2 && ENABLE_INSMOD) \ | ||
72 | && !(ENABLE_FEATURE_SEAMLESS_BZ2 && ENABLE_DEPMOD) \ | ||
73 | && !(ENABLE_FEATURE_SEAMLESS_BZ2 && ENABLE_MAN) \ | ||
74 | && !ENABLE_BUNZIP2 \ | ||
75 | && !ENABLE_BZCAT | ||
76 | # undef ENABLE_FEATURE_COMPRESS_USAGE | ||
77 | # define ENABLE_FEATURE_COMPRESS_USAGE 0 | ||
78 | #endif | ||
79 | |||
80 | |||
55 | #if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE | 81 | #if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE |
56 | static const char usage_messages[] ALIGN1 = UNPACKED_USAGE; | 82 | static const char usage_messages[] ALIGN1 = UNPACKED_USAGE; |
57 | #else | 83 | #else |