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

Signed-off-by: Ulf Samuelsson <[email protected]>
---
 recipes/libstdc++/libstdc++.bb |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 recipes/libstdc++/libstdc++.bb

diff --git a/recipes/libstdc++/libstdc++.bb b/recipes/libstdc++/libstdc++.bb
new file mode 100644
index 0000000..a24c153
--- /dev/null
+++ b/recipes/libstdc++/libstdc++.bb
@@ -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++"
+
-- 
1.6.0.2


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to