439b518b1a
So don't bother building libxml2 programs for Android, we have no need for them, there is no way to run them on normal devices, etc. While at it, don't bother with scripts, manpages or "data" either. We just want the library. Change-Id: Ic6553c4ed5b51feab40fed6bd62fd10795e9acf9
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
--- misc/libxml2-2.7.6/ltmain.sh
|
|
+++ misc/build/libxml2-2.7.6/ltmain.sh
|
|
@@ -3228,6 +3228,12 @@
|
|
func_warning "\`-release' is ignored for convenience libraries"
|
|
else
|
|
|
|
+ # Force no versioning suffix for Android thanks to silly
|
|
+ # apkbuilder which doesn't add extra native libs unless their
|
|
+ # name ends with .so
|
|
+
|
|
+ version_type=none
|
|
+
|
|
# Parse the version information argument.
|
|
save_ifs="$IFS"; IFS=':'
|
|
set dummy $vinfo 0 0 0
|
|
--- misc/libxml2-2.7.6/trionan.c
|
|
+++ misc/build/libxml2-2.7.6/trionan.c
|
|
@@ -327,7 +327,7 @@
|
|
|
|
if (result == 0.0) {
|
|
|
|
-#if defined(TRIO_COMPILER_SUPPORTS_C99)
|
|
+#if defined(TRIO_COMPILER_SUPPORTS_C99) && !(defined(__ANDROID__) && defined(__clang__))
|
|
result = nan("");
|
|
|
|
#elif defined(NAN) && defined(__STDC_IEC_559__)
|
|
|
|
--- misc/libxml2-2.7.6/Makefile.in
|
|
+++ misc/build/libxml2-2.7.6/Makefile.in
|
|
@@ -1635,7 +1635,7 @@
|
|
check-am: all-am
|
|
check: $(BUILT_SOURCES)
|
|
$(MAKE) $(AM_MAKEFLAGS) check-recursive
|
|
-all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \
|
|
+all-am: Makefile $(LTLIBRARIES) \
|
|
config.h
|
|
install-binPROGRAMS: install-libLTLIBRARIES
|
|
|