[PATCH] ash: support platforms that don't have '%m' printf specifier

Xabier Oneca -- xOneca xoneca at gmail.com
Thu Jul 27 16:16:59 UTC 2017


Hello:

2017-07-27 17:48 GMT+02:00 Ron Yorston <rmy at pobox.com>:
> Kang-Che Sung wrote:
>>dietlibc supports %m only if WANT_ERROR_PRINTF is defined in
>><dietfeartures.h> when building, and its commented out by default.
>>I don't know how to check the macro WANT_ERROR_PRINTF in
>>the dietlibc build environment, but I think busybox needs to be
>>aware of this.
>
> There doesn't seem to be anything in a standard build of dietlibc
> to allow detection of this at (application) build-time.  The
> dietfeatures.h include file is only available when the library is
> built; it isn't installed.
>
> I suppose if the default is for '%m' to be disabled that's what
> BusyBox should assume.  If someone has built dietlibc with the
> non-default option they should be capable of doing the same for
> BusyBox.
>
> Unless any dietlibc users have a better suggestion...
>
> Ron

Try to compile a little application that uses this functionality and
check for success, as would be done with autoconf. Not suggesting to
do that, just giving ideas...

Cheers,

Xabier Oneca_,,_


More information about the busybox mailing list