diff --git a/libs/sqlite/configure.ac b/libs/sqlite/configure.ac index 094548bc71..a08cc6fa57 100644 --- a/libs/sqlite/configure.ac +++ b/libs/sqlite/configure.ac @@ -323,6 +323,7 @@ fi AC_SUBST(THREADSAFE) if test "$THREADSAFE" = "1"; then + CC=$TARGET_CC LIBS="" AC_CHECK_LIB(pthread, pthread_create) TARGET_THREAD_LIB="$LIBS"