[patch #10564] emscripten: fix shared library C++ postdeps detection
Alexandre Janniaux <[email protected]> Wed, 11 Mar 2026 08:13:54 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.libtool.patches |
|---|---|
| Message-ID | <[email protected]> |
--8323329-1714636915-1773231234=:3416009
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline
URL:=0A <https://savannah.gnu.org/patch/?10564>=0A=0A Summ=
ary: emscripten: fix shared library C++ postdeps=0Adetection=0A =
Group: GNU Libtool=0A Submitter: espresso=0A =
Submitted: Wed 11 Mar 2026 12:13:50 PM UTC=0A Category:=
None=0A Priority: 5 - Normal=0A Status: No=
ne=0A Privacy: Public=0A Assigned to: None=0A =
Originator Email:=0A Open/Closed: Open=0A Discuss=
ion Lock: Unlocked=0A=0A=0A ____________________________________________=
___________=0A=0AFollow-up Comments:=0A=0A=0A------------------------------=
-------------------------=0ADate: Wed 11 Mar 2026 12:13:50 PM UTC By: Alexa=
ndre Janniaux <espresso>=0AHi!=0A=0AWe stumble upon this issue in the VLC p=
roject, and we've been patching the=0Agenerated config.status for a while:=
=0A=0Ahttps://code.videolan.org/videolan/vlc/-/blob/master/extras/package/w=
asm-emscripten/build.sh?ref_type=3Dheads#L214-216=0A=0ARecently, Khalid als=
o fixed the C++ postdeps that started to fail to link=0Aafter an emscripten=
SDK update, basically patching out the postdeps:=0A=0Ahttps://code.videola=
n.org/videolan/vlc/-/merge_requests/7665=0A=0ABy lack of time, we didn't in=
vestigated how to fix that in libtool, but it=0Aseems the main issue is tha=
t em++ doesn't generate the same postdeps between=0Aside module (~=3D share=
d libraries) mode and main mode.=0A=0AThe attached patch fix this issue by =
making sure the postdeps detection also=0Ause the -sSIDE_MODULE=3D2 option =
like in the linking/archive command, but it=0Aalso makes me wonder whether =
libtool should continue using emcc in the future=0Aor also implement direct=
ly what emcc/em++ wrappers are doing under the hood.=0AGiven the work it re=
quires, I guess we can continue like this for now.=0A=0ARegards,=0A--=0AAle=
xandre Janniaux=0AVideolabs=0A=0A=0A=0A=0A=0A=0A _______________________=
________________________________=0AFile Attachments:=0A=0AName: 0001-m4-lib=
tool.m4-fix-emscripten-CXX-postdeps-using-non-.patch Size:=0A2.4KiB=0A=0A<h=
ttps://file.savannah.gnu.org/file/0001-m4-libtool.m4-fix-emscripten-CXX-pos=
tdeps-using-non-.patch?file_id=3D58341>=0A=0A=0A=0A AGPL NOTICE=0A=0AThe=
se attachments are served by Savane. You can download the corresponding=0As=
ource code of Savane at=0Ahttps://savannah.gnu.org/source/savane-5479f0ac3e=
1f014845fd281c379bc3ccb7a72723.tar.gz=0A=0A ____________________________=
___________________________=0A=0AReply to this item at:=0A=0A <https://sav=
annah.gnu.org/patch/?10564>=0A=0A__________________________________________=
_____=0AMessage sent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-1714636915-1773231234=:3416009
Content-Type: APPLICATION/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCabFcggAKCRCqLAuaBUf3
Tk+zAQDR5hgp7T5PExoLPbVUDAxSfT2kw3E+sJyYbyBztzJ5cwD/Z+esqxUcyuFc
PngG3xXxP+FNvsPWr7oNj3laaPYLsQA=
=0svw
-----END PGP SIGNATURE-----
--8323329-1714636915-1773231234=:3416009--