Re: sbuild crosscompiler not searching /usr/include/arm-linux-gnueabihf
- To: debian-embedded@lists.debian.org
- Cc: Debian Cross-build list <debian-cross@lists.debian.org>
- Subject: Re: sbuild crosscompiler not searching /usr/include/arm-linux-gnueabihf
- From: Wookey <wookey@wookware.org>
- Date: Wed, 23 Sep 2015 04:07:40 +0100
- Message-id: <[🔎] 20150923030740.GZ20548@halon.org.uk>
- Mail-followup-to: debian-embedded@lists.debian.org, Debian Cross-build list <debian-cross@lists.debian.org>
- In-reply-to: <CADo5kbug+kQ7rDU8cZFpeyPHihh8NCi9zMRH1S1puCLWLjYoDQ@mail.gmail.com>
- References: <CADo5kbt6awqvzbtapSdyhTPaNip6weWVXSmUHXsrwVhjnVkYGg@mail.gmail.com> <CADo5kbu17H5nL3J0bV_J9ukodLPey3ja23heg+KRr7aFMq-Eaw@mail.gmail.com> <CADo5kbss1vzUQamZi0q+Bps2vHtxwZHJkiEMzCg-yO3FHOdwXw@mail.gmail.com> <20150916211002.12451.78677@localhost> <20150916230536.GI20548@halon.org.uk> <CADo5kbuR0+OvKO-nO=U-YA_yQ1x_OuBRR_4HRWFoRr_xrugojg@mail.gmail.com> <CADo5kbug+kQ7rDU8cZFpeyPHihh8NCi9zMRH1S1puCLWLjYoDQ@mail.gmail.com>
+++ 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.
Wookey
--
Principal hats: Linaro, Debian, Wookware, ARM
http://wookware.org/
Reply to: