Portability patch from rfelker. The bb_asprintf.c thing needs an eventualfollow up in platform.h to set the #ifdef, but the workaround works for
everybody, so...
I'm about to introduce tests that need to run as root (like mount.tests),meaning we want to run them in a chroot environment. To help with this,
I worked out a utility function that makes it really easy to set up a chroot
environment.
vi-mode changes: eliminate warnings from out-of-range-for-typecase labels that are emitted by gcc4. rearrange macros to
eliminate these extra case labels entirely (since the optimizer
may no longer do it for us). eliminate static BUFSIZ character
deletion buffer -- malloc it, and make it much much smaller.
- workaround bug in make-3.81beta4:- has to use
/top/obj/dir/*.o: /top/obj/dir/file.o: /top/src/file.c
instead of the proper
/top/obj/dir/*.o: /top/obj/dir/file.o: /top/src/dir/file.c
- work around missing features and bugs in make-3.79.1:- no order-only prerequisites; incomplete workaround (see comment in diff)
- no internal variable MAKEFILE_LIST; workaround
- define bar\nfoo:=<long-list> doesn't work; workaround
also:
- reinstate clean, distclean as noconfig_target.
- unconditionally clean libbusybox.so*
- ar cruP doesn't replace ('r') but unconditionally _adds_ all objects. landley, that one broke your tar-testing (see below).To see the issue i was talking about in the comment to rev. 14431, remove the
'P' from ARFLAGS in Rules.mak, then recompile.
You will see undefined references to these symbols:
iplink_main
iproute_main
iptunnel_main
login_main
run_parts_main
These are due to the fact that these applets (named e.g. login.o) clash with
libbb/login.o, for example. So ar sees that we're going to add login.o
(the...
- make sure applets.o is rebuilt when the .config changes.- don't overwrite objects in the archive. Affected applets with name-clash
mostly vs. libbb:
iplink_main
iproute_main
iptunnel_main
login_main
run_parts_main
- fix compilation of sed. error: static declaration of 'free_and_close_stuff' follows non-static declaration Tiny whitespace cleanup while at it, also make sure that we don't use CONFIG_ anymore.Rob, hope this is ok w/ you..
defconfig shouldn't enable CONFIG_INSTALL_NO_USR, and while we're at itremove residue of old defconfig and tweak "make with no config" to run
defconfig before bringing up menuconfig.