Skip to content

Commit 568d91d

Browse files
committed
Unset comiler flags for before_all
1 parent 6d15e42 commit 568d91d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bin/cibw_before_all_pyodide.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ fi
1313

1414
mkdir -p "$WASM_LIBRARY_DIR"
1515

16-
export CFLAGS="-fPIC ${CFLAGS:-}"
16+
# 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"
1724

1825
"$SCRIPT_DIR/pyodide_build_dependencies.sh" --wasm-library-dir "$WASM_LIBRARY_DIR"

0 commit comments

Comments
 (0)