summaryrefslogtreecommitdiff
path: root/packages/gcc/gcc-package.inc
diff options
context:
space:
mode:
authorRaymond Danks <raymond@edanks.com>2006-05-31 22:35:20 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-31 22:35:20 +0000
commitee362d1f5b993983a60fd5fc413c047ee9894194 (patch)
treed3f62f8b95f9f374dbb6a820617872c1bc825400 /packages/gcc/gcc-package.inc
parentd784bf8174ba1df53d37149a34d8652911983fdb (diff)
gcc - ${TARGET_PREFIX}gcov are useful for cross code coverage analysis.
Cleanup some errors in packaging when certain files do not exist. Add GCOV_PREFIX* cross-profiling patches. Pass in GFORTRAN_FOR_TARGET for cross builds.
Diffstat (limited to 'packages/gcc/gcc-package.inc')
-rw-r--r--packages/gcc/gcc-package.inc15
1 files changed, 7 insertions, 8 deletions
diff --git a/packages/gcc/gcc-package.inc b/packages/gcc/gcc-package.inc
index 4dcc72e879..425e906a57 100644
--- a/packages/gcc/gcc-package.inc
+++ b/packages/gcc/gcc-package.inc
@@ -67,34 +67,33 @@ do_install () {
rm -r ${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
# Hack around specs file assumptions
- sed -i -e '/^*cross_compile:$/ { n; s/1/0/; }' ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs &>/dev/null || true
+ test -f ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs && sed -i -e '/^*cross_compile:$/ { n; s/1/0/; }' ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs
# Move libgcc_s into /lib
mkdir -p ${D}${base_libdir}
mv ${D}${libdir}/libgcc_s.so.* ${D}${base_libdir}
- rm ${D}${libdir}/libgcc_s.so
+ rm -f ${D}${libdir}/libgcc_s.so
ln -sf `echo ${libdir}/gcc/${TARGET_SYS}/${BINV} \
| tr -s / \
| sed -e 's,^/,,' -e 's,[^/]*,..,g'`/lib/libgcc_s.so.1 \
${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcc_s.so
# We don't need libtool libraries
- rm ${D}${libdir}/libg2c.la &>/dev/null || true
-
+ rm -f ${D}${libdir}/libg2c.la &>/dev/null || true
# Cleanup manpages..
- rm -r ${D}${mandir}/man7
+ rm -rf ${D}${mandir}/man7
# We use libiberty from binutils
- rm ${D}${libdir}/libiberty.a
+ rm -f ${D}${libdir}/libiberty.a
cd ${D}${bindir}
# We care about g++ not c++
- rm *c++
+ rm -f *c++
# We don't care about the gcc-<version> ones for this
- rm *gcc-?.?*
+ rm -f *gcc-?.?*
# These sometimes show up, they are strange, we remove them
rm -f ${TARGET_ARCH}-*${TARGET_ARCH}-*