org.openembedded.dev: c4ddf91e7b2d4722f1370f052742495e925b34a9

oe at monotone.openmoko.org oe at monotone.openmoko.org
Fri May 2 21:04:51 CEST 2008


revision:            c4ddf91e7b2d4722f1370f052742495e925b34a9
date:                2008-04-23T05:18:35
author:              khem at openembedded.org
branch:              org.openembedded.dev
changelog:
Add libm=yes to target gas builds on uclibc.

manifest:
format_version "1"

new_manifest [80f49cf32fff00122f1401a564cd2c605b49fe85]

old_revision [9657976dc776d91497527af2118c2d2f92495725]

add_file "packages/binutils/binutils-2.18/binutils-uclibc-gas-needs-libm.patch"
 content [842e4b87da656a73a12e264bddb4a5cf192fe05f]

patch "packages/binutils/binutils_2.18.bb"
 from [eb13afcd1ffd6007cc0c26706d7f5bede6f14cff]
   to [44f0f4e1073d51c3e194f661c7f445cc7c851c6b]
-------------- next part --------------
#
#
# add_file "packages/binutils/binutils-2.18/binutils-uclibc-gas-needs-libm.patch"
#  content [842e4b87da656a73a12e264bddb4a5cf192fe05f]
# 
# patch "packages/binutils/binutils_2.18.bb"
#  from [eb13afcd1ffd6007cc0c26706d7f5bede6f14cff]
#    to [44f0f4e1073d51c3e194f661c7f445cc7c851c6b]
#
============================================================
--- packages/binutils/binutils-2.18/binutils-uclibc-gas-needs-libm.patch	842e4b87da656a73a12e264bddb4a5cf192fe05f
+++ packages/binutils/binutils-2.18/binutils-uclibc-gas-needs-libm.patch	842e4b87da656a73a12e264bddb4a5cf192fe05f
@@ -0,0 +1,38 @@
+Source: Khem Raj <raj.khem at gmail.com>
+Disposition: submit upstream.
+
+Description:
+
+We do not need to have the libtool patch anymore for binutils after
+libtool has been updated upstream it include support for it. However
+for building gas natively on uclibc systems we have to link it with
+-lm so that it picks up missing symbols.
+
+/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_from_double':
+floatformat.c:(.text+0x1ec): undefined reference to `frexp'
+floatformat.c:(.text+0x2f8): undefined reference to `ldexp'
+/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_to_double':
+floatformat.c:(.text+0x38a): undefined reference to `ldexp'
+floatformat.c:(.text+0x3d2): undefined reference to `ldexp'
+floatformat.c:(.text+0x43e): undefined reference to `ldexp'                     floatformat.c:(.text+0x4e2): undefined reference to `ldexp'
+collect2: ld returned 1 exit status
+make[4]: *** [as-new] Error 1
+
+Index: binutils-2.17.50/gas/configure.tgt
+===================================================================
+--- binutils-2.17.50.orig/gas/configure.tgt
++++ binutils-2.17.50/gas/configure.tgt
+@@ -408,6 +408,12 @@ case ${generic_target} in
+   *-*-netware)				fmt=elf em=netware ;;
+ esac
+ 
++case ${generic_target} in
++  arm-*-*uclibc*)
++    need_libm=yes
++    ;;
++esac
++
+ case ${cpu_type} in
+   alpha | arm | i386 | ia64 | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k)
+     bfd_gas=yes
+
============================================================
--- packages/binutils/binutils_2.18.bb	eb13afcd1ffd6007cc0c26706d7f5bede6f14cff
+++ packages/binutils/binutils_2.18.bb	44f0f4e1073d51c3e194f661c7f445cc7c851c6b
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require binutils.inc
 
@@ -11,6 +11,7 @@ SRC_URI = "\
      file://binutils-uclibc-300-001_ld_makefile_patch.patch;patch=1 \
      file://binutils-uclibc-300-006_better_file_error.patch;patch=1 \
      file://binutils-uclibc-300-012_check_ldrunpath_length.patch;patch=1 \
+     file://binutils-uclibc-gas-needs-libm.patch;patch=1 \
      "
 
 # powerpc patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/commitlog/attachments/20080502/90427f9b/attachment.htm 


More information about the commitlog mailing list