From 208fa57bcf6fd703accb3a67792a5d835731e43a Mon Sep 17 00:00:00 2001 From: Dexter Chua Date: Fri, 1 Jan 2021 17:45:44 +0800 Subject: [PATCH] Explicitly tell sqlite popen is not available (#999) --- cpython/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpython/Makefile b/cpython/Makefile index d10ed04cb..cf03b5189 100644 --- a/cpython/Makefile +++ b/cpython/Makefile @@ -82,9 +82,11 @@ $(ZLIBBUILD)/.configured: $(ZLIBTARBALL) $(SQLITEBUILD)/libsqlite3.la: $(SQLITETARBALL) [ -d $(ROOT)/build ] || (mkdir $(ROOT)/build) tar -C $(ROOT)/build/ -xf $(SQLITETARBALL) + # sqlite fails to detect that popen is not available. We have to set it + # as a CPPFLAG ( \ cd $(SQLITEBUILD); \ - emconfigure ./configure; \ + CPPFLAGS="-DSQLITE_OMIT_POPEN" emconfigure ./configure; \ emmake make -j $${PYODIDE_JOBS:-3}; \ )