emscripten-core / emscripten-core/emscripten
[feature request] Allow more granular `-sERROR_ON_UNDEFINED_SYMBOLS=getpass`
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
At least at https://github.com/TeX-Live/texlive-source/tree/tags/texlive-2023.0, autoconf-generated standard configure produces `ac_cv_func_getwd=yes`:
I suggest it should be somehow fixed to fail this autoconf check (`AC_CHECK_FUNCS([getwd])` passes under Emscripten?
If can't be fixed, could introduce some flag to `emconfigure` for it to append the hack `ac_cv_func_getwd=no` (or provide an autoconf cache file with all these known overrides), or document it somewhere (as part of autoconf checks which are known to be buggy under Emscripten)
Contributor guide
Research direction
Start by examining emconfigure's handling of autoconf-generated configure checks, especially AC_CHECK_FUNCS([getwd]) and the existing -sERROR_ON_UNDEFINED_SYMBOLS=getpass behavior. Done means either the getwd check fails correctly under Emscripten or users have a documented way to apply ac_cv_func_getwd=no and other known overrides.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, wasm
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100