Cross-compilation support for Android

This commit is contained in:
Tor Lillqvist
2011-06-09 19:40:37 +03:00
parent 496bba4a68
commit d6964127f5
2 changed files with 12 additions and 1 deletions

View File

@@ -398,6 +398,17 @@
$(RM) -f $(libdb)
$(LN) -s .libs/$(libdb_version) $(libdb)
--- misc/db-4.7.25.NC/dist/config.sub
+++ misc/build/db-4.7.25.NC/dist/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* \
| -chorusos* | -chorusrdb* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
--- misc/db-4.7.25.NC/dist/configure 2008-05-15 23:12:41.000000000 +0200
+++ misc/build/db-4.7.25.NC/dist/configure 2009-07-21 11:39:25.000000000 +0200
@@ -3757,8 +3757,10 @@

View File

@@ -116,7 +116,7 @@ BUILD_DIR=$(CONFIGURE_DIR)
BUILD_DIR_OUT=$(CONFIGURE_DIR)
BUILD_ACTION=$(GNUMAKE) -j$(EXTMAXPROCESS)
.IF "$(OS)"=="IOS"
.IF "$(OS)"=="IOS" || "$(OS)" == "ANDROID"
OUT2LIB=$(BUILD_DIR)$/libdb*.a
.ELSE
OUT2LIB=$(BUILD_DIR)$/.libs$/libdb*$(DLLPOST)