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}; \ )