URL: <https://savannah.gnu.org/patch/?10564>
Summary: emscripten: fix shared library C++ postdeps
detection
Group: GNU Libtool
Submitter: espresso
Submitted: Wed 11 Mar 2026 12:13:50 PM UTC
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Unlocked
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 11 Mar 2026 12:13:50 PM UTC By: Alexandre Janniaux <espresso>
Hi!
We stumble upon this issue in the VLC project, and we've been patching the
generated config.status for a while:
https://code.videolan.org/videolan/vlc/-/blob/master/extras/package/wasm-emscripten/build.sh?ref_type=heads#L214-216
Recently, Khalid also fixed the C++ postdeps that started to fail to link
after an emscripten SDK update, basically patching out the postdeps:
https://code.videolan.org/videolan/vlc/-/merge_requests/7665
By lack of time, we didn't investigated how to fix that in libtool, but it
seems the main issue is that em++ doesn't generate the same postdeps between
side module (~= shared libraries) mode and main mode.
The attached patch fix this issue by making sure the postdeps detection also
use the -sSIDE_MODULE=2 option like in the linking/archive command, but it
also makes me wonder whether libtool should continue using emcc in the future
or also implement directly what emcc/em++ wrappers are doing under the hood.
Given the work it requires, I guess we can continue like this for now.
Regards,
--
Alexandre Janniaux
Videolabs
_______________________________________________________
File Attachments:
Name: 0001-m4-libtool.m4-fix-emscripten-CXX-postdeps-using-non-.patch Size:
2.4KiB
<https://file.savannah.gnu.org/file/0001-m4-libtool.m4-fix-emscripten-CXX-postdeps-using-non-.patch?file_id=58341>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-5479f0ac3e1f014845fd281c379bc3ccb7a72723.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?10564>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
