We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d15e42 commit 568d91dCopy full SHA for 568d91d
bin/cibw_before_all_pyodide.sh
@@ -13,6 +13,13 @@ fi
13
14
mkdir -p "$WASM_LIBRARY_DIR"
15
16
-export CFLAGS="-fPIC ${CFLAGS:-}"
+# The Pyodide cibuildwheel environment for building python-flint itself sets
17
+# include/library flags that reference libgmp/libmpfr/libflint. Those libraries
18
+# do not exist yet while bootstrapping the static dependencies here, so letting
19
+# them leak into configure would break link tests such as "does the C compiler
20
+# work?" for GMP. Use a minimal environment for the bootstrap step.
21
+unset PKG_CONFIG_PATH
22
+unset LDFLAGS
23
+export CFLAGS="-fPIC"
24
25
"$SCRIPT_DIR/pyodide_build_dependencies.sh" --wasm-library-dir "$WASM_LIBRARY_DIR"
0 commit comments