Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] libstdc++ with external toolchain
@ 2009-10-16 15:51 Marco Braga
  2009-10-25 21:21 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Braga @ 2009-10-16 15:51 UTC (permalink / raw)
  To: buildroot

Hello,

I am successfully using buildroot-2009.08 with external toolchain from
CodeSourcery, but I have a problem with the "Build/install c++
compiler and libstdc++?" option that sets BR2_INSTALL_LIBSTDCPP.
Basically the libstdc++ is not installed because buildroot expects
this to be in "lib" directory of the toolchain instead of "usr/lib"
(as is in CodeSourcery's toolchain for ARM).

I'd like to understand if this is the expected behavior or it is a bug.

Looking deeper into the issue, I've traced it to
"toolchain/external-toolchain/ext-tool.mk". If BR2_INSTALL_LIBSTDCPP
is set, then libstdc++.so is added to EXTERNAL_LIBS variable:

ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
EXTERNAL_LIBS+=libstdc++.so
endif

But then EXTERNAL_LIBS are searched only in "lib" dir and not in "usr/lib":

$(Q)for libs in $(EXTERNAL_LIBS); do \
  $(call copy_toolchain_lib_root,$(SYSROOT_DIR),$$libs,/lib,$(BR2_TOOLCHAIN_EXTERNAL_STRIP));
\
done

The result is tha copy_toolchain_lib_root only looks into "/lib" and
since the library is not found it is not copied.

Regards,
Marco

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] libstdc++ with external toolchain
  2009-10-16 15:51 [Buildroot] libstdc++ with external toolchain Marco Braga
@ 2009-10-25 21:21 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2009-10-25 21:21 UTC (permalink / raw)
  To: buildroot

Hello Marco,

Le Fri, 16 Oct 2009 17:51:40 +0200,
Marco Braga <marco.braga@gmail.com> a ?crit :

> I am successfully using buildroot-2009.08 with external toolchain from
> CodeSourcery, but I have a problem with the "Build/install c++
> compiler and libstdc++?" option that sets BR2_INSTALL_LIBSTDCPP.
> Basically the libstdc++ is not installed because buildroot expects
> this to be in "lib" directory of the toolchain instead of "usr/lib"
> (as is in CodeSourcery's toolchain for ARM).
> 
> I'd like to understand if this is the expected behavior or it is a
> bug.

Supporting all sort of external toolchains is difficult, and I
initially started adding external toolchain support to Buildroot by
testing toolchains generated by Crosstool-NG. Supporting Codesourcery
toolchains is on my TODO-list.

Could you submit a bug report so that I can keep track of this issue,
and fix it when I'll work again on Codesourcery toolchains support ?

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-25 21:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16 15:51 [Buildroot] libstdc++ with external toolchain Marco Braga
2009-10-25 21:21 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox