From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sun, 23 Nov 2014 19:03:31 +0100 Subject: [Buildroot] [PATCH 1/5] toolchain-external: fix C++ build issues with the Blackfin toolchain In-Reply-To: <20141123185637.5c00ad44@free-electrons.com> References: <1416764163-12826-1-git-send-email-thomas.petazzoni@free-electrons.com> <1416764163-12826-2-git-send-email-thomas.petazzoni@free-electrons.com> <20141123175430.GE11143@free.fr> <20141123185637.5c00ad44@free-electrons.com> Message-ID: <20141123180331.GG11143@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Thomas, All, On 2014-11-23 18:56 +0100, Thomas Petazzoni spake thusly: > On Sun, 23 Nov 2014 18:54:30 +0100, Yann E. MORIN wrote: > > On 2014-11-23 18:35 +0100, Thomas Petazzoni spake thusly: > > > The Blackfin toolchain install some libtool .la files, which none of > > > the other toolchains seem to do, > > > > Well, with my crostool-NG toolchains, I have some, for example: [--SNIP--] > What do they contain? $ cat ./armv6-rpi-linux-gnueabihf/armv6-rpi-linux-gnueabihf/sysroot/lib/libstdc++.la # libstdc++.la - a libtool library file # Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libstdc++.so.6' # Names of this library. library_names='libstdc++.so.6.0.20 libstdc++.so.6 libstdc++.so' # The name of the static archive. old_library='libstdc++.a' # Linker flags that can not go in dependency_libs. inherited_linker_flags='' # Libraries that this one depends upon. dependency_libs=' -lm' # Names of additional weak libraries provided by this library weak_library_names='' # Version information for libstdc++. current=6 age=0 revision=20 # Is this an already installed library? installed=yes # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/home/ymorin/x-tools/armv6-rpi-linux-gnueabihf/armv6-rpi-linux-gnueabihf/lib' > At least, with the Blackfin toolchain, for some reason, libtool find it > smart to append the Buildroot sysroot path with the libdir value found > in the .la file. What. Wait, did you say 'libtool' and 'smart' in the same sentence? ;-] Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'