libstdc++.bb: copy libstdc++.so* to rootfs
PATCH 1/1 libstdc++.bb: copy libstdc++.so* to rootfs
libstdc++.so* is needed by some applications during build, including gnome-mplayer.
This recipe copies the shared library from the crosscompiler directory, without having to install the complete compiler in the target system
--- recipes/libstdc++/libstdc++.bb | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 recipes/libstdc++/libstdc++.bb
recipes/libstdc++/libstdc++.bb new file +15 -0
@@ -0,0 +1,15 @@ +PR = "r1" +LIBSTDCPLUSPLUS_TARGET = ${STAGING_DIR_TARGET}/lib + +do_install () { + if ! [ -e ${LIBSTDCPLUSPLUS_TARGET}/libstdc++.so ] ; then + cp ${CROSS_DIR}/${TARGET_SYS}/lib/libstdc++.so.6.* ${LIBSTDCPLUSPLUS_TARGET} + cd ${LIBSTDCPLUSPLUS_TARGET} + file=`ls libstdc++.so.6.*` + ln -s $file libstdc++.so.6 + ln -s $file libstdc++.so + fi +} + +PROVIDES = "libstdc++" +
Signature · 1 line
1.6.0.2
Quoted 6 lines · Ulf Samuelsson
libstdc++.so* is needed by some applications during build, including gnome-mplayer.
This recipe copies the shared library from the crosscompiler directory, without having to install the complete compiler in the target system
Checking in a non-external-toolchain based build I have around, I see staging/<target>/usr/lib/libstdc++.so / libstc++.so.6 which point at libstdc++.so.6.0.10, which exists. Can you explain how you're getting a lack of libstdc++? Thanks.
Signature · 2 lines
Tom Rini <[email protected]> Mentor Graphics Corporation
Quoted 4 lines · On Wednesday 17 March 2010 01:43:41 Tom Rini wrote:
Checking in a non-external-toolchain based build I have around, I see staging/<target>/usr/lib/libstdc++.so / libstc++.so.6 which point at libstdc++.so.6.0.10, which exists. Can you explain how you're getting a lack of libstdc++? Thanks.
I assume he is using gcc to link and some external lib linked C++ symbols into the global scope... This was a bug in some versions of gcc and we solved it in WebKit/GTK+ by having a linker script and excluding everything _Z*.
So I would nack this change and instead figure out which C library is exposing C++ symbols.
Quoted 7 lines · Holger Hans Peter Freyther
Quoted 4 lines · On Wednesday 17 March 2010 01:43:41 Tom Rini wrote:
Checking in a non-external-toolchain based build I have around, I see staging/<target>/usr/lib/libstdc++.so / libstc++.so.6 which point at libstdc++.so.6.0.10, which exists. Can you explain how you're getting a lack of libstdc++? Thanks.
Quoted 6 lines
I assume he is using gcc to link and some external lib linked C++ symbols into the global scope... This was a bug in some versions of gcc and we solved it in WebKit/GTK+ by having a linker script and excluding everything _Z*.
So I would nack this change and instead figure out which C library is exposing C++ symbols.
I think we have had discussions about packaging gcc runtime. There were some proposals on packaging it
but the directions seems to be that we need to package them better. Weather we create a single package
for all runtime or package each language runtime differently is decision to me made. I think toolchain-desuck
branch would be the right place to get this done.
Quoted 7 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Holger Hans Peter Freyther skrev:
Quoted 6 lines · On Wednesday 17 March 2010 01:43:41 Tom Rini wrote:
Quoted 5 lines
Checking in a non-external-toolchain based build I have around, I see staging/<target>/usr/lib/libstdc++.so / libstc++.so.6 which point at libstdc++.so.6.0.10, which exists. Can you explain how you're getting a lack of libstdc++? Thanks.
I can also see this in the target but it is needed also during the build of gnome-mplayer, or that will fail.
Quoted 8 lines
I assume he is using gcc to link and some external lib linked C++ symbols into the global scope... This was a bug in some versions of gcc and we solved it in WebKit/GTK+ by having a linker script and excluding everything _Z*.
So I would nack this change and instead figure out which C library is exposing C++ symbols.
When building gnome-mplayer, it complains that "libmusicbrainz" needs the symbols from libstdc++.so.6.
Quoted 5 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 2 lines
Best Regards Ulf Samuelsson
Quoted 5 lines · On Wednesday 17 March 2010 07:31:48 Ulf Samuelsson wrote:
Quoted 2 lines
So I would nack this change and instead figure out which C library is exposing C++ symbols.
When building gnome-mplayer, it complains that "libmusicbrainz" needs the symbols from libstdc++.so.6.
Which symbols? Please mail us the link error. In any case the compile/link fix is more inside libmusicbrainz than it is in copying the libstdc++ around.