File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,10 +128,10 @@ else()
128128 if (ANDROID )
129129 # NOTE: SQLCipher seems to have trouble finding liblog and libm which is in this folder here
130130 # in the sysroot
131- set (sqlcipher_ldflags "${sqlcipher_ldflags} -L${ANDROID_TOOLCHAIN_ROOT} /sysroot/usr/lib/${android_toolchain_prefix} -${android_toolchain_suffix} /${ANDROID_PLATFORM_LEVEL} " )
132-
133131 # NOTE: SQLite uses __android_log_print and __android_log_write which is in their liblog library
132+ set (sqlcipher_ldflags "${sqlcipher_ldflags} -L${ANDROID_TOOLCHAIN_ROOT} /sysroot/usr/lib/${android_toolchain_prefix} -${android_toolchain_suffix} /${ANDROID_PLATFORM_LEVEL} " )
134133 set (sqlcipher_ldflags "${sqlcipher_ldflags} -lm -llog" )
134+ set (sqlcipher_cflags "${sqlcipher_cflags} --sysroot=${ANDROID_TOOLCHAIN_ROOT} /sysroot" )
135135 endif ()
136136
137137 set (sqlcipher_cflags "${sqlcipher_cflags} -DSQLCIPHER_CRYPTO_OPENSSL -I${OPENSSL_INCLUDE_DIRS} " )
You can’t perform that action at this time.
0 commit comments