Skip to content

Commit 91184f6

Browse files
committed
Unset CXX?
1 parent 651e99b commit 91184f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpython-unix/build-sqlite.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ elif [ "${TARGET_TRIPLE}" = "x86_64-apple-ios" ]; then
2222
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_search_system=no"
2323
fi
2424

25+
# The SQLite autosetup looks for the C++ compiler if the variable is set and will fail if it's not
26+
# found, even if it's not needed. We don't actually have a C++ compiler in some builds, so ensure
27+
# it's not looked for.
28+
unset CXX
29+
2530
CC_FOR_BUILD="${HOST_CC}" CFLAGS="${EXTRA_TARGET_CFLAGS} -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS3_TOKENIZER -fPIC" CPPFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC" LDFLAGS="${EXTRA_TARGET_LDFLAGS}" ./configure ${CONFIGURE_FLAGS}
2631

2732
make -j ${NUM_CPUS} libsqlite3.a

0 commit comments

Comments
 (0)