2017-11-20 16:04 GMT+01:00 Óscar Fuentes : > Fabrice Popineau > > writes: > > >>> Just out of curiosity, given the Emacs executable, is there a way to > know > >>> the MSYS2/MinGW64 DLLs it needs? On MSYS2 I tried: > >>> > >>> ldd Emacs/bin/emacs-27.0.50.exe > >>> but it prints only Windows DLLs not all the others which come from > >>> MSYS2/MinGW64... > >>> > >> > >> Hi. Use ntldd (installable via pacman) or Dependency Walker. > > > > > > Will it find the libraries that loaded at runtime ? And their > dependencies ? > > Dunno about ntldd, but if you execute Emacs from Dependency Walker it > will report dlls loaded at runtime. > Yes, if you _execute_ emacs from DependencyWalker and if you request that the dll be loaded. Until then, you don't know. I have built a list of dlls that maybe requested by emacs using pacman. I used pacman to know which package holds some dll like gnutls, and then I listed all its dependencies, and filtered the dlls in the dependencies. Unfortunately, knowing the dlls is not enough. For example, gnutls also need to have an accessible ca-bundle for certificates. ImageMagick needs all its helpers to handle various file formats, etc. Fabrice