diff options
author | Denys Vlasenko | 2018-12-30 20:07:54 +0100 |
---|---|---|
committer | Denys Vlasenko | 2018-12-31 15:18:45 +0100 |
commit | 8b710ef000c383f3476245b27bacf034532d9786 (patch) | |
tree | 005cad7590f554db7e71c6515134a59f95f19345 | |
parent | 29bc59312f92623dad8b2273f0814f9cb09515a5 (diff) | |
download | busybox-8b710ef000c383f3476245b27bacf034532d9786.zip busybox-8b710ef000c383f3476245b27bacf034532d9786.tar.gz |
make_single_applets.sh: fix for BSS trick
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | make_single_applets.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/make_single_applets.sh b/make_single_applets.sh index 2075cb9..a37168c 100755 --- a/make_single_applets.sh +++ b/make_single_applets.sh @@ -72,6 +72,16 @@ for app; do echo "NUM_APPLETS != 1 for ${app}: `cat include/NUM_APPLETS.h`" mv .config busybox_config_${app} else + if grep -q 'use larger COMMON_BUFSIZE' busybox_make_${app}.log; then + # FEATURE_USE_BSS_TAIL=y is selected, and build system + # recommends rebuilding. Do so, and print some + # debug info to see whether it works right: + tail -n1 busybox_make_${app}.log + nm busybox_unstripped | grep ' _end' + make >/dev/null 2>&1 + nm busybox_unstripped | grep ' _end' + grep ^bb_common_bufsiz1 busybox_unstripped.map + fi grep -i -e error: -e warning: busybox_make_${app}.log \ || rm busybox_make_${app}.log mv busybox busybox_${app} |