Skip to content

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Aug 19, 2025

With this flag, no symbols are exported in the shared library, making it impossible to interface with.

Another approach would be to mark only the symbols we actually want to export, but I think it's fine to export all the non-static ones.

With this flag, no symbols are exported in the shared library, making it impossible to interface with.
This was referenced Aug 19, 2025
@aduh95
Copy link
Contributor Author

aduh95 commented Aug 25, 2025

/cc @nodejs/wasi

@guybedford
Copy link
Contributor

I'd personally prefer to be explicit here about interface requirements with Node.js, and would favour exporting what is needed.

@aduh95 aduh95 merged commit 4e9b4e0 into main Sep 2, 2025
15 checks passed
@aduh95 aduh95 changed the title fix: remove -fvisibility=hidden from the build flags fix shared lib symbol export Sep 2, 2025
@aduh95 aduh95 deleted the export-symbols-in-shared-lib branch September 2, 2025 21:28
aduh95 added a commit that referenced this pull request Sep 2, 2025
Notable changes:

- Disallow malformed path with null byte (#266) (7aaa0b4)
- Preserve trailing slash in file path (#268) (afffaaa)
- Disallow absolute path at the raw WASI level (#270) (9811374)
- Error if creating symlink to absolute path (#272) (c8d4f01)
- Add cflite and document normalize path (#280) (6eeddba)
- Resolve old_path in uvwasi_path_symlink() (#303) (98da5ad)
- Use index rather than `telldir`/`seekdir` to represent `fd_readdir` cookie (#298) (392e1f1)
- fix: static library name (#305) (146e516)
- fix: do not put header files in a subfolders (#302) (ec28b58)
- fix: explicitly export symbols (#308) (4e9b4e0)
carlocab added a commit to Homebrew/homebrew-core that referenced this pull request Sep 3, 2025
This was fixed upstream in nodejs/uvwasi#308.

Also, let's apply nodejs/uvwasi#311 to ensure that all the symbols that
Node needs are exported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants