From 16d494b22b4e805d09178bf5f9bb5e68133ad192 Mon Sep 17 00:00:00 2001 From: Gyeongjae Choi Date: Mon, 30 Jan 2023 10:43:34 +0900 Subject: [PATCH] Disable AUTO_JS_LIBRARIES and AUTO_NATIVE_LIBRARIES flags (#3505) --- Makefile.envs | 2 ++ docs/project/changelog.md | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Makefile.envs b/Makefile.envs index 17457a851..8fd24c099 100644 --- a/Makefile.envs +++ b/Makefile.envs @@ -114,6 +114,8 @@ export MAIN_MODULE_LDFLAGS= $(LDFLAGS_BASE) \ -s POLYFILL \ -s MIN_SAFARI_VERSION=140000 \ -s STACK_SIZE=5MB \ + -s AUTO_JS_LIBRARIES=0 \ + -s AUTO_NATIVE_LIBRARIES=0 \ \ -lpython$(PYMAJOR).$(PYMINOR) \ -lffi \ diff --git a/docs/project/changelog.md b/docs/project/changelog.md index 3aa4a2440..aa3b0adc7 100644 --- a/docs/project/changelog.md +++ b/docs/project/changelog.md @@ -31,6 +31,12 @@ myst: - {{ Enhancement }} Updated Emscripten to version 3.1.31 {pr}`3471`, {pr}`3517` +- {{ Breaking }} Following libraries are now not linked to the Pyodide main module: + `libgl`, `libal`, `libhtml5`. This normally shouldn't affect users, but if you + are using these libraries in a package that are built out-of-tree, you will + need to link them to the package manually. + {pr}`3505` + ### Build System - {{ Enhancement }} Improved logging in `pyodide-build` with rich.