← Commit list

8b710ef00

Denys Vlasenko
Denys Vlasenko
2018-12-31
SUCCESS Duration: 151s

Subject

make_single_applets.sh: fix for BSS trick

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

make_single_applets.sh+10 -0
@@ -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}