aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc/gcc-cross-intermediate.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-12-09 16:58:50 -0800
committerKhem Raj <raj.khem@gmail.com>2010-12-09 17:02:42 -0800
commita91b9a2922d5eb61ad89524b5dab7da524ce00bf (patch)
treec4772eea6b00b3c9302c394b18947323ba721c37 /recipes/gcc/gcc-cross-intermediate.inc
parent6c0ce137ba0781bb7d3ddd6dfcf6d7d6af3f58df (diff)
downloadopenembedded-a91b9a2922d5eb61ad89524b5dab7da524ce00bf.tar.gz
gcc/gcc-cross/gcc-cross-intermediate: Generate libgcc_s.so as a linker script stub
Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Eric BĂ©nard <eric@eukrea.com>
Diffstat (limited to 'recipes/gcc/gcc-cross-intermediate.inc')
-rw-r--r--recipes/gcc/gcc-cross-intermediate.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-cross-intermediate.inc b/recipes/gcc/gcc-cross-intermediate.inc
index 2b6b24fb4c..c2ec66d8ad 100644
--- a/recipes/gcc/gcc-cross-intermediate.inc
+++ b/recipes/gcc/gcc-cross-intermediate.inc
@@ -28,6 +28,12 @@ do_install () {
mv -f ${D}${prefix}/$d/* ${D}${target_libdir} || true
fi
done
+ rm -f ${D}${target_base_libdir}/libgcc_s.so
+ rm -f ${D}${target_libdir}/libgcc_s.so
+ echo "/* GNU ld script
+ Use the shared library, but some functions are only in
+ the static library. */
+GROUP ( libgcc_s.so.1 libgcc.a )" > ${D}${target_libdir}/libgcc_s.so
# If this is important, we should remove the staging package here
# get rid of dummy libc.so
#if [ -z "`file ${STAGING_DIR_TARGET}${target_libdir}/libc.so | grep "ASCII C program text"`" ]; then