<!-- Generator: GNU source-highlight 2.4
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt>#
#
# 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]
#
============================================================
<font color="#FF6600">--- packages/binutils/binutils-2.18/binutils-uclibc-gas-needs-libm.patch        842e4b87da656a73a12e264bddb4a5cf192fe05f</font>
<font color="#009900">+++ packages/binutils/binutils-2.18/binutils-uclibc-gas-needs-libm.patch        842e4b87da656a73a12e264bddb4a5cf192fe05f</font>
<font color="#0000FF">@@ -0,0 +1,38 @@</font>
<font color="#009900">+Source: Khem Raj &lt;raj.khem@gmail.com&gt;</font>
<font color="#009900">+Disposition: submit upstream.</font>
<font color="#009900">+</font>
<font color="#009900">+Description:</font>
<font color="#009900">+</font>
<font color="#009900">+We do not need to have the libtool patch anymore for binutils after</font>
<font color="#009900">+libtool has been updated upstream it include support for it. However</font>
<font color="#009900">+for building gas natively on uclibc systems we have to link it with</font>
<font color="#009900">+-lm so that it picks up missing symbols.</font>
<font color="#009900">+</font>
<font color="#009900">+/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_from_double':</font>
<font color="#009900">+floatformat.c:(.text+0x1ec): undefined reference to `frexp'</font>
<font color="#009900">+floatformat.c:(.text+0x2f8): undefined reference to `ldexp'</font>
<font color="#009900">+/local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_to_double':</font>
<font color="#009900">+floatformat.c:(.text+0x38a): undefined reference to `ldexp'</font>
<font color="#009900">+floatformat.c:(.text+0x3d2): undefined reference to `ldexp'</font>
<font color="#009900">+floatformat.c:(.text+0x43e): undefined reference to `ldexp'                     floatformat.c:(.text+0x4e2): undefined reference to `ldexp'</font>
<font color="#009900">+collect2: ld returned 1 exit status</font>
<font color="#009900">+make[4]: *** [as-new] Error 1</font>
<font color="#009900">+</font>
<font color="#009900">+Index: binutils-2.17.50/gas/configure.tgt</font>
<font color="#009900">+===================================================================</font>
<font color="#009900">+--- binutils-2.17.50.orig/gas/configure.tgt</font>
<font color="#009900">++++ binutils-2.17.50/gas/configure.tgt</font>
<font color="#009900">+@@ -408,6 +408,12 @@ case ${generic_target} in</font>
<font color="#009900">+   *-*-netware)                                fmt=elf em=netware ;;</font>
<font color="#009900">+ esac</font>
<font color="#009900">+ </font>
<font color="#009900">++case ${generic_target} in</font>
<font color="#009900">++  arm-*-*uclibc*)</font>
<font color="#009900">++    need_libm=yes</font>
<font color="#009900">++    ;;</font>
<font color="#009900">++esac</font>
<font color="#009900">++</font>
<font color="#009900">+ case ${cpu_type} in</font>
<font color="#009900">+   alpha | arm | i386 | ia64 | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k)</font>
<font color="#009900">+     bfd_gas=yes</font>
<font color="#009900">+</font>
============================================================
<font color="#FF6600">--- packages/binutils/binutils_2.18.bb        eb13afcd1ffd6007cc0c26706d7f5bede6f14cff</font>
<font color="#009900">+++ packages/binutils/binutils_2.18.bb        44f0f4e1073d51c3e194f661c7f445cc7c851c6b</font>
<font color="#0000FF">@@ -1,4 +1,4 @@</font>
<font color="#FF6600">-PR = "r2"</font>
<font color="#009900">+PR = "r3"</font>
 
 require binutils.inc
 
<font color="#0000FF">@@ -11,6 +11,7 @@ SRC_URI = "\</font>
      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 \
<font color="#009900">+     file://binutils-uclibc-gas-needs-libm.patch;patch=1 \</font>
      "
 
 # powerpc patches
</tt></pre>