libart_lgpl-2.3.21-crosscompile.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Taken from portage
  2. Upstream-Status: Pending
  3. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  4. From e1443c945a4cf67096d8c27721aadd7368382b3f Mon Sep 17 00:00:00 2001
  5. From: Gilles Dartiguelongue <eva@gentoo.org>
  6. Date: Tue, 6 Apr 2010 15:22:25 +0200
  7. Subject: [PATCH 2/2] gentoo: use ISO types for fixed type size
  8. ---
  9. Makefile.am | 11 ++---------
  10. art_config.h | 5 +++++
  11. configure.in | 10 ----------
  12. 3 files changed, 7 insertions(+), 19 deletions(-)
  13. create mode 100644 art_config.h
  14. diff --git a/Makefile.am b/Makefile.am
  15. index 95952da..6aa2fe3 100644
  16. --- a/Makefile.am
  17. +++ b/Makefile.am
  18. @@ -2,13 +2,6 @@ check_PROGRAMS = testart testuta
  19. bin_SCRIPTS = \
  20. libart2-config
  21. -
  22. -noinst_SCRIPTS = gen_art_config.sh
  23. -
  24. -BUILT_SOURCES = art_config.h
  25. -
  26. -art_config.h:
  27. - ./gen_art_config.sh > art_config.h
  28. EXTRA_DIST = \
  29. libart.def \
  30. @@ -173,5 +166,5 @@ install-data-local: install-ms-lib install-libtool-import-lib
  31. uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
  32. -CLEANFILES = $(BUILT_SOURCES) $(bin_SCRIPTS)
  33. -DISTCLEANFILES = $(BUILT_SOURCES) $(bin_SCRIPTS)
  34. +CLEANFILES = $(bin_SCRIPTS)
  35. +DISTCLEANFILES = $(bin_SCRIPTS)
  36. diff --git a/art_config.h b/art_config.h
  37. new file mode 100644
  38. index 0000000..5985f1f
  39. --- a/art_config.h
  40. +++ b/art_config.h
  41. @@ -0,0 +1,5 @@
  42. +#include <stdint.h>
  43. +
  44. +typedef uint8_t art_u8;
  45. +typedef uint16_t art_u16;
  46. +typedef uint32_t art_u32;
  47. diff --git a/configure.in b/configure.in
  48. index e4804f7..ddcac4f 100644
  49. --- a/configure.in
  50. +++ b/configure.in
  51. @@ -92,15 +92,6 @@ AC_FUNC_ALLOCA
  52. AC_C_BIGENDIAN
  53. -AC_CHECK_SIZEOF(char)
  54. -AC_SUBST(ART_SIZEOF_CHAR, $ac_cv_sizeof_char)
  55. -AC_CHECK_SIZEOF(short)
  56. -AC_SUBST(ART_SIZEOF_SHORT, $ac_cv_sizeof_short)
  57. -AC_CHECK_SIZEOF(int)
  58. -AC_SUBST(ART_SIZEOF_INT, $ac_cv_sizeof_int)
  59. -AC_CHECK_SIZEOF(long)
  60. -AC_SUBST(ART_SIZEOF_LONG, $ac_cv_sizeof_long)
  61. -
  62. AC_CONFIG_FILES([
  63. libart-features.h
  64. Makefile
  65. @@ -109,6 +100,5 @@ libart-2.0-uninstalled.pc
  66. libart-zip])
  67. AC_CONFIG_FILES([libart-config],[chmod +x libart-config])
  68. -AC_CONFIG_FILES([gen_art_config.sh],[chmod +x gen_art_config.sh])
  69. AC_OUTPUT
  70. --
  71. 1.7.0.4