[oe-issues] [Bug 2928] binutils-cross fails to build on x86_64
bugzilla-daemon at tinman.treke.net
bugzilla-daemon at tinman.treke.net
Wed Sep 5 19:16:27 UTC 2007
http://bugs.openembedded.org/show_bug.cgi?id=2928
--- Comment #6 from Cliff Brake <cliff.brake at gmail.com> 2007-09-05 12:16:27 ---
The following patch will probably work with 2.6.18 on both 32 and 64 bit hosts.
However, it may break with earlier versions of binutils.
I'm still not sure what to do with the following lines in the bb as I'm not
sure what the intent is, but they fail nicely ...
rmdir ${CROSS_DIR}/${libdir}/gcc-lib || :
rmdir ${CROSS_DIR}/${libdir} || :
rmdir ${CROSS_DIR}/${prefix} || :
#
# old_revision [110c6ec488c63036fe1cb9a1e304bfb935b57bca]
#
# patch "packages/binutils/binutils-cross.inc"
# from [2a9f9e4a843e43fc6356fa81e25f167e69bdd8d2]
# to [bd04b8b517ab24728bf6d5f2cad09dee8f175b39]
#
============================================================
--- packages/binutils/binutils-cross.inc
2a9f9e4a843e43fc6356fa81e25f167e69bdd8d2
+++ packages/binutils/binutils-cross.inc
bd04b8b517ab24728bf6d5f2cad09dee8f175b39
@@ -11,6 +11,8 @@ do_stage () {
do_stage () {
oe_runmake install
+ MULTILIBDIR=`gcc -print-multi-os-directory`
+
# We don't really need these, so we'll remove them...
rm -rf ${CROSS_DIR}/lib/ldscripts
rm -rf ${CROSS_DIR}/share/info
@@ -23,8 +25,8 @@ do_stage () {
# We want to move this into the target specific location
mkdir -p ${CROSS_DIR}/${TARGET_SYS}/lib
- mv -f ${CROSS_DIR}/lib/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib
- rmdir ${CROSS_DIR}/lib || :
+ mv -f ${CROSS_DIR}/lib/${MULTILIBDIR}/libiberty.a
${CROSS_DIR}/${TARGET_SYS}/lib
+ rmdir ${CROSS_DIR}/lib/${MULTILIBDIR} || :
}
do_install () {
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-issues
mailing list