summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-05-07 13:11:31 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-05-07 13:11:31 +0000
commita2794497ce69fabeff46b43ce099561e5a280c57 (patch)
treed11d577fdbe191bca70a06a3a78841a6c16d8abb
parent19fd3108e3148d351b4c834539b99fdf6d90ef1b (diff)
downloadOSELAS.Toolchain-a2794497ce69fabeff46b43ce099561e5a280c57.tar.gz
OSELAS.Toolchain-a2794497ce69fabeff46b43ce099561e5a280c57.tar.xz
[PATCH] [cross-gcc] move libstdc++ into sysroot after installtion
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/branches/OSELAS.Toolchain-1.99.3-branch@10904 f8d472c7-5700-0410-ac5a-87979cec3adf
-rw-r--r--rules/cross-gcc.make14
1 files changed, 13 insertions, 1 deletions
diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make
index ada15ae..3450ecf 100644
--- a/rules/cross-gcc.make
+++ b/rules/cross-gcc.make
@@ -2,7 +2,7 @@
# $Id$
#
# Copyright (C) 2006 by Robert Schwebel
-# 2008 by Marc Kleine-Budde <mkl@pengutronix.de>
+# 2008, 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
@@ -151,6 +151,18 @@ $(STATEDIR)/cross-gcc.install:
@$(call targetinfo)
cd $(CROSS_GCC_BUILDDIR) && \
$(CROSS_GCC_PATH) $(MAKE) install
+
+ @cd "$(PTXCONF_SYSROOT_CROSS)/$(PTX_TOUPLE_TARGET)/lib"; \
+ for file in \
+ libstdc++*.so* \
+ libssp*.so* \
+ libgfortran*.so* \
+ libg2c*.so* \
+ ; do \
+ [ \! -e "$${file}" ] && continue; \
+ mv -v -f "$${file}" "$(SYSROOT)/usr/lib" || exit 1; \
+ done
+
@find $(PTXCONF_SYSROOT_CROSS) -name "*.la" | while read la_file; do \
rm -v $${la_file}; \
done