[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sbuild crosscompiler not searching /usr/include/arm-linux-gnueabihf

+++ nice sw123 [2015-09-17 10:46 +0200]:
> On Thu, Sep 17, 2015 at 9:59 AM, nice sw123 wrote:
> > override_dh_shlibdeps:
> >         LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib:$(LD_LIBRARY_PATH) dh_shlibdeps

man dh_shlibdeps says not to do this, and to use -l<directory> instead.

But in fact this is the wrong fix. The actual problem is that
libstdc++6:armhf is not installed (because it's not listed in the
package's build-deps). So it's not found by dh_shlibdeps in the normal
lib dirs.

You are fixing it by pointing at the copy the cross-compiler
installed for its own use.

This presumably isn't an issue on x86 because libstdc++6 is installed
whenever the g++ compiler is, so you don't notice that it is missing
from the build-deps. But it is not part of build-essential so should
be listed as a build dep.

I think I now have a complete cross-patch for mosquitto, so will file
a bug. Thanks for bringing it to my attention.

Principal hats:  Linaro, Debian, Wookware, ARM

Reply to: