[Buildroot] [PATCH 1/1] toolchain/wrapper: fix building without glibc

Peter Korsgaard peter at korsgaard.com
Wed Jan 25 21:31:30 UTC 2017

>>>>> "Baruch" == Baruch Siach <baruch at tkos.co.il> writes:

 > Hi Marcin,
 > On Sat, Dec 31, 2016 at 04:30:17PM +0100, Marcin Chojnacki wrote:
 >> toolchain-wrapper.c now uses program_invocation_short_name, which is
 >> a glibc specific extension. This causes build to fail when using a
 >> system with libc different than glibc (musl, BSD libc, etc.)
 >> This change makes toolchain-wrapper.c portable, by setting it's value
 >> to getprogname() when __GLIBC__ is not defined, and thus makes running
 >> buildroot possible on glibc-less systems.

 > getprogname() is BSD specific[1]. None of the major Linux libcs (glibc, 
 > uclibc-ng, musl) provide it.

 > [1] https://www.freebsd.org/cgi/man.cgi?query=getprogname&sektion=3

Out of interest, what system are you trying to use Buildroot on? A BSD
variant? I would imagine a number of other things breaking on !Linux

Bye, Peter Korsgaard

More information about the buildroot mailing list