Skip to content

Commit 1a16cdc

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Test Pyodide builds
1 parent 522df8b commit 1a16cdc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_sdl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ def get_emscripten_include_dir() -> Path:
306306
out = subprocess.check_output(["pkg-config", "sdl3", "--cflags"], universal_newlines=True)
307307
except Exception:
308308
if "PYODIDE" in os.environ:
309-
emcc_stdout = subprocess.check_output(["emcc", "-sRELOCATABLE=1", "--use-port=sdl3", "--cflags"], text=True)
309+
emcc_stdout = subprocess.check_output(
310+
["emcc", "-sRELOCATABLE=1", "-fPIC", "--use-port=sdl3", "--cflags"], text=True
311+
)
310312
print(f"""EMCC CFLAGS: {emcc_stdout}""")
311313
matches = re.findall(r"--sysroot=(\S+)", emcc_stdout)
312314
print(f"{matches=}")

0 commit comments

Comments
 (0)