[oe] [PATCH 1/1] libstdc++.bb: copy libstdc++.so* to rootfs
Ulf Samuelsson
ulf.samuelsson at atmel.com
Tue Mar 16 20:58:50 UTC 2010
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 <ulf.samuelsson at atmel.com>
---
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
More information about the Openembedded-devel
mailing list