[oe-commits] Ulf Samuelsson : libstdc++.bb: copy libstdc++.so* to rootfs

git version control git at git.openembedded.org
Thu Mar 25 16:48:28 UTC 2010


Module: openembedded.git
Branch: ulf/linux-2.6.30-20100317
Commit: ce2576fbc4aaad25d1f1c9d3b59640a6538bdb73
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ce2576fbc4aaad25d1f1c9d3b59640a6538bdb73

Author: Ulf Samuelsson <ulf.samuelsson at atmel.com>
Date:   Thu Mar 25 16:25:42 2010 +0100

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

Signed-off-by: Ulf Samuelsson <ulf.samuelsson at atmel.com>

---

 recipes/libstdc++/libstdc++.bb |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

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





More information about the Openembedded-commits mailing list