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

Richard Weinberger richard.weinberger at gmail.com
Sat Jul 16 06:31:15 PDT 2016


Thomas,

On Sat, Jul 16, 2016 at 11:48 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Guard the usage of execinfo.h by INTEGCK_DEBUG so that by defaut,
> integck builds properly on systems without <execinfo.h> (uClibc and
> musl based systems). As stated in the code, the backtrace()
> functionality of <execinfo.h> will anyway only work properly when
> INTEGCK_DEBUG is defined (it makes all functions non-static, which is
> needed for backtrace to provide some useful information).

But this means in uClibc and musl systems INTEGCK_DEBUG is still not
usable, right?
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.
IOW when mtd-utils is built against non-glibc we add -lmissing to the
compiler command line.

-- 
Thanks,
//richard



More information about the linux-mtd mailing list