From busybox Wed Apr 07 17:32:22 2021 From: Tim Tassonis Date: Wed, 07 Apr 2021 17:32:22 +0000 To: busybox Subject: Re: Issue with "standalone shell" and applets not working Message-Id: <2d07586e-3be1-ee31-bdad-37b6ab4d3357 () decentral ! ch> X-MARC-Message: https://marc.info/?l=busybox&m=161781861205644 On 4/6/21 5:04 AM, Eli Schwartz wrote: > On 4/4/21 8:59 AM, spiral wrote: >> >>> What platform are you using? >> I am using Linux Mint 20.1 with gcc. >> Building it on Arch (still with gcc) worked correctly, oddly enough. >> However, I can't build busybox static with Arch since they don't >> seem to ship glibc-static. :/ > > Busybox static should build successfully on Arch, it just won't be 100% > static since glibc is actually a bit terrible about that. It will not > link to any other libraries, but it will warn you during the link stage > that it will be rigged up to dlopen() the libnss_* libraries. > > Really, people should always do like the official Arch repos do and like > you discovered yourself, and build with a libc that is not the GNU libc. > For this purpose, I maintain both the musl libc in the official repos, > and a fairly featureful desktop-targeted busybox binary built, > statically, against that musl toolchain. Keep in mind it is always worth > comparing and contrasting how the distro is doing it! > > https://busybox.net/FAQ.html#libc recommends uclibc as the favorite libc > of the busybox developers. You may acquire uclibc-ng from the AUR, but I > can't make any particular guarantees about it as I (obviously) don't use > this AUR package. > > ... > > I wonder, why does the busybox website mention glibc/uclibc (and warn > you off of dietlibc or klibc!) and not musl? It seems like musl is > fairly popular for minimal systems and static distribution, moreso than > glibc certainly. It could use some mention. I also use musl, not least because it does not require a full independent toolchain, but can be used on a glibc system with normal system gcc, using the musl-gcc wrapped. That saves a lot of time. _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox