libart_lgpl-2.3.21-crosscompile.patch 2.0 KB

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