Fixing random behaviour of sqlite on android
authorEdouard Tisserant
Thu, 26 May 2016 18:11:09 +0200
changeset 68584b0077c771c
parent 684 23c6795d6de1
child 686 7ebd63dbedca
Fixing random behaviour of sqlite on android
build-android/jni/Android.mk
     1.1 --- a/build-android/jni/Android.mk	Wed May 25 13:44:44 2016 +0200
     1.2 +++ b/build-android/jni/Android.mk	Thu May 26 18:11:09 2016 +0200
     1.3 @@ -16,6 +16,15 @@
     1.4  LOCAL_MODULE    := pEpEngine
     1.5  LOCAL_CFLAGS    += -std=c99
     1.6  
     1.7 +# from http://www.sqlite.org/android/finfo?name=jni/sqlite/Android.mk 
     1.8 +#      http://www.sqlite.org/android/artifact/e8ed354b3e58c835
     1.9 +
    1.10 +# This is important - it causes SQLite to use memory for temp files. Since 
    1.11 +# Android has no globally writable temp directory, if this is not defined the
    1.12 +# application throws an exception when it tries to create a temp file.
    1.13 +#
    1.14 +LOCAL_CFLAGS    += -DSQLITE_TEMP_STORE=3
    1.15 +
    1.16  LOCAL_C_INCLUDES := ../../src \
    1.17                      ../../asn.1 \
    1.18                      $(GPGME_INCLUDE_PATH) \