|
From: Eli Z. <el...@gn...> - 2017-11-20 15:52:53
|
> Date: Mon, 20 Nov 2017 13:53:16 +0100 (CET) > From: Angelo Graziosi <ang...@li...> > > 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 > ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffab5f30000) > KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ffab49b0000) > [...] > WINMMBASE.dll => /c/WINDOWS/SYSTEM32/WINMMBASE.dll (0x7ffab0620000) > IPHLPAPI.DLL => /c/WINDOWS/SYSTEM32/IPHLPAPI.DLL (0x7ffab18a0000) > bcrypt.dll => /c/WINDOWS/SYSTEM32/bcrypt.dll (0x7ffab1de0000) > > but it prints only Windows DLLs not all the others which come from MSYS2/MinGW64... Like this: objdump -x emacs.exe | fgrep "DLL Name:" However, if you are looking for the optional image libraries, libxml2, etc., you won't find them this way: Emacs loads them dynamically at run time by using explicit LoadLibrary calls. Maybe something like this: stringgs emacs.exe | fgrep -i ".dll" |