summaryrefslogtreecommitdiff
path: root/libxml2
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2011-09-26 23:27:57 +0200
committerThorsten Behrens <tbehrens@novell.com>2011-09-27 09:46:38 +0200
commit04b8b4fbbb4b7f72f33d0b76b86945cb98c4ecd9 (patch)
treea9038a8c5081a246779a6d9b7fbfe0e774af725a /libxml2
parent47d7d1e987e1caa030c7623767d9dfe3d85eb924 (diff)
Make Android cross-build working
In the spirit of 12759f67a36d52a345be6002d7017551e8414c59, change external lib's config.sub to eat the arm-unknown-linux-androideabi host os string. Also, permit shared libs again - seems Android can handle those. Added dictionaries to cross-build-toolset - idxdict is needed. Should build up to sfx2 - some residual static lib issues there, and in raptor.
Diffstat (limited to 'libxml2')
-rw-r--r--libxml2/libxml2-configure.patch27
-rwxr-xr-xlibxml2/makefile.mk2
2 files changed, 19 insertions, 10 deletions
diff --git a/libxml2/libxml2-configure.patch b/libxml2/libxml2-configure.patch
index 8694b6a4d328..d13d55e83ce7 100644
--- a/libxml2/libxml2-configure.patch
+++ b/libxml2/libxml2-configure.patch
@@ -1,14 +1,23 @@
---- misc/libxml2-2.7.6/config.sub
-+++ misc/build/libxml2-2.7.6/config.sub
-@@ -1272,7 +1272,7 @@
- | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
- | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
- | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
-- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
-+ | -udi* | -androideabi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+--- misc/libxml2-2.7.6/config.sub 2009-06-11 11:29:50.000000000 +0200
++++ misc/build/libxml2-2.7.6/config.sub 2011-09-26 18:05:31.000000000 +0200
+@@ -120,7 +120,7 @@
+ # Here we must recognize all the valid KERNEL-OS combinations.
+ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+ case $maybe_os in
+- nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
++ nto-qnx* | linux-gnu* | linux-dietlibc | linux-android* | linux-newlib* | linux-uclibc* | \
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
+ kopensolaris*-gnu* | \
+ storm-chaos* | os2-emx* | rtmk-nova*)
+@@ -1275,7 +1275,7 @@
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
+- | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
++ | -mingw32* | -linux-gnu* | -linux-androideabi* | -linux-newlib* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
--- misc/libxml2-2.7.6/Makefile.in
+++ misc/build/libxml2-2.7.6/Makefile.in
@@ -41,9 +41,9 @@
diff --git a/libxml2/makefile.mk b/libxml2/makefile.mk
index 83180edbb478..1c29a593a947 100755
--- a/libxml2/makefile.mk
+++ b/libxml2/makefile.mk
@@ -137,7 +137,7 @@ EXTRPATH=URELIB
OUT2LIB+=.libs$/libxml2.*.dylib
OUT2BIN+=.libs$/xmllint
OUT2BIN+=xml2-config
-.ELIF "$(OS)"=="IOS" || "$(OS)"=="ANDROID"
+.ELIF "$(OS)"=="IOS"
OUT2LIB+=.libs$/libxml2.a
OUT2BIN+=xml2-config
.ELIF "$(OS)"=="WNT"