htop: work-around old uClibc issue when static linking
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Feb 2017 21:12:04 +0000 (22:12 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 26 Feb 2017 21:42:53 +0000 (22:42 +0100)
commita4b7bdd469e3d37ae7bd755db35bd52c2b0cce40
tree33d874ce77f6bd41e49b78979e7cf5a7383a2418
parentfc4250119582043bf57a6296ae0264aa95f97fac
htop: work-around old uClibc issue when static linking

htop wants to use backtrace() support from the C
library. Unfortunately, with old uClibc versions such as the one we
use for the ARC architecture, the backtrace() implementation is in
libubacktrace. In addition, this implementation needs dladdr()
support, which is in libdl, not available when static linking.

Since this problem no longer exists in more recent versions of uClibc,
we simply special case the ARC+static linking case, and make the
configure script believe that <execinfo.h> is not available.

Fixes:

  http://autobuild.buildroot.net/results/cdea351fad7a0f61ddec3e6a141da8da0523a902/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/htop/htop.mk