[PATCH mtd-utils] integck: only use execinfo.h when INTEGCK_DEBUG is enabled

Richard Weinberger richard.weinberger at gmail.com
Sat Jul 16 08:03:50 PDT 2016


Thomas,

On Sat, Jul 16, 2016 at 3:34 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello,
>
> On Sat, 16 Jul 2016 15:31:15 +0200, Richard Weinberger wrote:
>
>> But this means in uClibc and musl systems INTEGCK_DEBUG is still not
>> usable, right?
>
> Correct.
>
>> Instead of papering over the issue we should bite the bullet and add a
>> libmissing to mtd-utils to same functionality across all kind of libcs.
>
> I'm not sure you really want a copy in libmissing of the backtrace
> functionality.

It is not only backtraceing, there are more features we gave up in
favor to non-glibc.
Using a libmissing we could better deal with that.
This is patch is by far not the first one to make mtd-utils work/build
on non-glibc systems.

> It would be so much better if mtd-utils were using autoconf to
> automatically detect the availability of execinfo.h, and adjust the
> functionality accordingly. Indeed, having the backtrace is useful, but
> is also not mandatory to use integck.

David is currently reviving my autoconf patch. That's why we're
currently thinking of
mechanisms to make mtd-utils better.

-- 
Thanks,
//richard



More information about the linux-mtd mailing list