[vlc-commits] [Git][videolan/vlc][master] extras: libtool: Use directory to add shared modules to compile emcc executables

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Apr 27 16:02:53 UTC 2024



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
f449db0b by Khalid Masum at 2024-04-27T15:16:09+00:00
extras: libtool: Use directory to add shared modules to compile emcc executables

Emscripten has not implemented adding shared libraries directly
to main modules properly yet.

See: https://github.com/emscripten-core/emscripten/issues/21667

Therefore, instruct libtool to use directory instead of the shared
object file for linking, as suggested in the issue.

- - - - -


1 changed file:

- extras/tools/libtool-2.4.7-emscripten-dlinker.patch


Changes:

=====================================
extras/tools/libtool-2.4.7-emscripten-dlinker.patch
=====================================
@@ -1,5 +1,15 @@
+diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
+--- a/build-aux/ltmain.in
++++ b/build-aux/ltmain.in
+@@ -6397,6 +6397,7 @@ func_mode_link ()
+		case $host in
+		  *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
+		  *-*-sysv4*uw2*) add_dir=-L$dir ;;
++		  *-*-emscripten*) add_dir=-L$dir ;;
+		  *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
+		    *-*-unixware7*) add_dir=-L$dir ;;
+		  *-*-darwin* )
 diff --git a/m4/libtool.m4 b/m4/libtool.m4
-index 009155ee..797604af 100644
 --- a/m4/libtool.m4
 +++ b/m4/libtool.m4
 @@ -3081,6 +3081,21 @@ uts4*)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f449db0bf0d5a8816dbf9952b269e8a55a66a0c8

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f449db0bf0d5a8816dbf9952b269e8a55a66a0c8
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list