diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 21:03:51 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 21:03:51 +0200 |
| commit | f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0 (patch) | |
| tree | 6e013fd342ece68ad902b849155625a160582967 /scripts | |
| parent | df70a43af281f7e653b1c95ff17201669fdcfca3 (diff) | |
| download | busybox-w32-f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0.tar.gz busybox-w32-f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0.tar.bz2 busybox-w32-f56fb5eb1120a92bdfb6d0ce64b3430b42a2efa0.zip | |
libbb: make "COMMON_BUFSIZE = 1024 bytes, the buffer will be malloced" work
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/generate_BUFSIZ.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/generate_BUFSIZ.sh b/scripts/generate_BUFSIZ.sh index bb0738641..d54142597 100755 --- a/scripts/generate_BUFSIZ.sh +++ b/scripts/generate_BUFSIZ.sh | |||
| @@ -87,7 +87,8 @@ if test $REM -lt 1024; then | |||
| 87 | echo "Rerun make to build a binary which doesn't use it!" | 87 | echo "Rerun make to build a binary which doesn't use it!" |
| 88 | exit 1 | 88 | exit 1 |
| 89 | fi | 89 | fi |
| 90 | exit 0 | 90 | echo "COMMON_BUFSIZE = 1024 bytes, the buffer will be malloced" |
| 91 | exit 0 | ||
| 91 | fi | 92 | fi |
| 92 | 93 | ||
| 93 | # _end[] has REM bytes for bb_common_bufsiz1[] | 94 | # _end[] has REM bytes for bb_common_bufsiz1[] |
| @@ -102,7 +103,7 @@ echo "#define setup_common_bufsiz() ((void)0)" | |||
| 102 | } | regenerate "$common_bufsiz_h" | 103 | } | regenerate "$common_bufsiz_h" |
| 103 | echo $REM >"$common_bufsiz_h.BUFSIZE" | 104 | echo $REM >"$common_bufsiz_h.BUFSIZE" |
| 104 | 105 | ||
| 105 | # Check that code did not grow too much and thus _end[] did not shink: | 106 | # Check that code did not grow too much and thus _end[] did not shrink: |
| 106 | if test $OLD -gt $REM; then | 107 | if test $OLD -gt $REM; then |
| 107 | echo "Warning! Space in _end[] has decreased from $OLD to $REM bytes!" | 108 | echo "Warning! Space in _end[] has decreased from $OLD to $REM bytes!" |
| 108 | echo "Rerun make!" | 109 | echo "Rerun make!" |
