112-arm-uclibc-gas-needs-libm.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Source: Khem Raj <[email protected]>
  2. Disposition: submit upstream.
  3. Description:
  4. We do not need to have the libtool patch anymore for binutils after
  5. libtool has been updated upstream it include support for it. However
  6. for building gas natively on uclibc systems we have to link it with
  7. -lm so that it picks up missing symbols.
  8. /local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_from_double':
  9. floatformat.c:(.text+0x1ec): undefined reference to `frexp'
  10. floatformat.c:(.text+0x2f8): undefined reference to `ldexp'
  11. /local/build_area/BUILD/arm_v5t_le_uclibc/binutils-2.17.50/objdir/libiberty/pic/libiberty.a(floatformat.o): In function `floatformat_to_double':
  12. floatformat.c:(.text+0x38a): undefined reference to `ldexp'
  13. floatformat.c:(.text+0x3d2): undefined reference to `ldexp'
  14. floatformat.c:(.text+0x43e): undefined reference to `ldexp' floatformat.c:(.text+0x4e2): undefined reference to `ldexp'
  15. collect2: ld returned 1 exit status
  16. make[4]: *** [as-new] Error 1
  17. --- a/gas/configure.tgt
  18. +++ b/gas/configure.tgt
  19. @@ -450,6 +450,12 @@ case ${generic_target} in
  20. *-*-netware) fmt=elf em=netware ;;
  21. esac
  22. +case ${generic_target} in
  23. + arm-*-*uclibc*)
  24. + need_libm=yes
  25. + ;;
  26. +esac
  27. +
  28. case ${cpu_type} in
  29. aarch64 | alpha | arm | i386 | ia64 | microblaze | mips | ns32k | pdp11 | ppc | sparc | z80 | z8k)
  30. bfd_gas=yes