From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Tue, 6 Sep 2011 17:24:25 +0200 Subject: [Buildroot] external buildroot toolchain: LD_LIBRARY_PATH needed In-Reply-To: References: Message-ID: <20110906172425.0fc541eb@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, Le Thu, 25 Aug 2011 11:07:31 +0200, Thomas De Schampheleire a ?crit : > However, the missing library does not seem part of sysroot. It is > located at output/host/opt/ext-toolchain/lib > where libgmp, libmpfr, libexpat etc. reside. Those libraries are libraries for the host, and they are used by gcc and binutils. > Maybe this wrapper should be adapted as to include the proper > LD_LIBRARY_PATH? No, I don't think it's the right solution. I think there are two solutions: * Link the toolchain binaries statically against those libraries so that the toolchain binaries only rely on the C libraries but not on gmp, mpfr, etc. * Link the toolchain binaries with a proper rpath. > How does crosstool-ng handle this fixed-path problem? >From what I can see, using static linking against those libraries. Regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com