summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-03-26 00:57:55 +0000
committerChris Larson <clarson@kergoth.com>2004-03-26 00:57:55 +0000
commitb69ffb54964b1c159a405df628f2e130dd0fc166 (patch)
tree96cc17452c2bdaa38d944b2c7f067e68769c56ae
parent8ad36092cf85660f0510fc2a4e21abab8edb96f3 (diff)
Import pb's patch to output a libgcc package from gcc-cross.
BKrev: 40638013P7WKwkigaQfpNB5TL9JdRw
-rw-r--r--gcc/gcc-cross_3.3.3.oe12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/gcc-cross_3.3.3.oe b/gcc/gcc-cross_3.3.3.oe
index 73192999e7..1dac954514 100644
--- a/gcc/gcc-cross_3.3.3.oe
+++ b/gcc/gcc-cross_3.3.3.oe
@@ -5,7 +5,7 @@ FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/gcc-${PV}"
DEPENDS = "virtual/${TARGET_PREFIX}binutils glibc patcher-native"
PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
-PACKAGES = ""
+PACKAGES = "libgcc"
EXTRA_OECONF = "--with-local-prefix=${CROSS_DIR}/${TARGET_SYS} \
--with-gxx-include-dir=${CROSS_DIR}/${TARGET_SYS}/include/c++ \
@@ -20,6 +20,8 @@ EXTRA_OECONF = "--with-local-prefix=${CROSS_DIR}/${TARGET_SYS} \
--enable-long-long \
--program-prefix=${TARGET_PREFIX}"
+FILES_libgcc = "/lib/libgcc_s.so.*"
+
export CPPFLAGS = ""
export CXXFLAGS = ""
export CFLAGS = ""
@@ -70,8 +72,10 @@ do_stage_append () {
rm -rf ${CROSS_DIR}/share
}
-# Kill the install so we get no packages (we're the cross compiler)
do_install () {
- :
-}
+ oe_runmake 'DESTDIR=${D}' install
+ # Move libgcc_s into /lib
+ mkdir -p ${D}/lib
+ mv -f ${D}/${prefix}/*/lib/libgcc_s.so.* ${D}/lib
+}