xref: /OK3568_Linux_fs/buildroot/package/libart/0001-art-config-cross.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1diff -Nura libart_lgpl-2.3.21.orig/Makefile.am libart_lgpl-2.3.21/Makefile.am
2--- libart_lgpl-2.3.21.orig/Makefile.am	2011-02-01 10:07:39.687545397 -0300
3+++ libart_lgpl-2.3.21/Makefile.am	2011-02-01 10:08:48.320545396 -0300
4@@ -5,11 +5,6 @@
5
6 noinst_SCRIPTS = gen_art_config.sh
7
8-BUILT_SOURCES = art_config.h
9-
10-art_config.h:
11-	./gen_art_config.sh > art_config.h
12-
13 EXTRA_DIST = 			\
14 	libart.def		\
15 	libart-config.in	\
16diff -Nura libart_lgpl-2.3.21.orig/art_config.h libart_lgpl-2.3.21/art_config.h
17--- libart_lgpl-2.3.21.orig/art_config.h	2011-02-01 10:07:39.688545397 -0300
18+++ libart_lgpl-2.3.21/art_config.h	2011-02-01 10:08:27.315545395 -0300
19@@ -1,9 +1,15 @@
20 /* Automatically generated by gen_art_config */
21
22+#include <limits.h>
23+
24 #define ART_SIZEOF_CHAR 1
25 #define ART_SIZEOF_SHORT 2
26 #define ART_SIZEOF_INT 4
27+#if LONG_MAX == 2147483647L
28 #define ART_SIZEOF_LONG 4
29+#else
30+#define ART_SIZEOF_LONG 8
31+#endif
32
33 typedef unsigned char art_u8;
34 typedef unsigned short art_u16;
35