OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/bash-crosscompile.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. bash's configure assumes getcwd is broken if cross compiling for an
  18. unsupported architecture, then includes its own getcwd implementation
  19. which conflicts with the SDE fl_wrapper library.
  20. -- Michael Tross
  21. diff -urN bash-3.1/configure bash-3.1.work/configure
  22. --- bash-3.1/configure 2005-12-01 15:44:38.000000000 +0100
  23. +++ bash-3.1.work/configure 2006-01-23 08:45:44.000000000 +0100
  24. @@ -3664,6 +3664,9 @@
  25. cross_cache=${srcdir}/cross-build/x86-beos.cache
  26. SIGNAMES_H='${srcdir}/cross-build/beos-sig.h'
  27. ;;
  28. + i[456]86-t2-linux-uclibc)
  29. + cross_cache=${srcdir}/cross-build/x86-uclibc.cache
  30. + ;;
  31. *) echo "configure: cross-compiling for $host is not supported" >&2
  32. ;;
  33. esac
  34. diff -urN bash-3.1/cross-build/x86-uclibc.cache bash-3.1.work/cross-build/x86-uclibc.cache
  35. --- bash-3.1/cross-build/x86-uclibc.cache 1970-01-01 01:00:00.000000000 +0100
  36. +++ bash-3.1.work/cross-build/x86-uclibc.cache 2006-01-23 08:57:59.000000000 +0100
  37. @@ -0,0 +1,17 @@
  38. +# This file is a shell script that caches the results of configure
  39. +# tests for x86 uClibc so they don't need to be done when cross-compiling.
  40. +
  41. +# x86 uClibc is little endian
  42. +ac_cv_c_bigendian=${ac_cv_c_bigendian='no'}
  43. +ac_cv_sizeof_char_p=${ac_cv_sizeof_char_p='4'}
  44. +ac_cv_sizeof_int=${ac_cv_sizeof_int='4'}
  45. +ac_cv_sizeof_long=${ac_cv_sizeof_long='4'}
  46. +ac_cv_sizeof_double=${ac_cv_sizeof_double='8'}
  47. +
  48. +# uClibc getcwd allocates memory if necessary
  49. +bash_cv_getcwd='yes'
  50. +bash_cv_getcwd_malloc='yes'
  51. +bash_cv_getcwd_calls_popen='no'
  52. +bash_cv_func_strcoll_broken='no'
  53. +
  54. +# end of cross-build/x86-uClibc.cache