> Date: Sun, 25 Oct 2026 22:00:44 +0100
> From: Patrice Dumas <[email protected]>
> Cc: [email protected]
> 
> As Hans-Bernhard Bröker said, nm supports a lot of formats, and "nm -A"
> works out of the box on libtexinfo.dll.a, which appears to be almost
> empty, consistently with a small size, the only T symbol is
> libtexinfo.dll.a:cygtexinfo_1_dll_d000001.o:00000000 T 
> _gl_get_setlocale_null_lock

That explains the unresolved externals.

> With the Perl flags, the end of the linking command adds, after removing
> Perl specific and -fstack-protector-strong, -Wl,--enable-auto-image-base
> being duplicated at the end too:
>  -Wl,--enable-auto-import -Wl,--export-all-symbols 
> -Wl,--enable-auto-image-base
> 
> -Wl,--enable-auto-image-base is also in the call above, only at the end,
> but the other two are not (same as other linking command). 
> 
> The two ld options --enable-auto-import and --export-all-symbols could be
> relevant to have code added to DLL, but it is strange that libtool does
> not add them already.

Try each one of them and see what is missing.  A more important
question is: why did libtool fail to use the correct link options?

Reply via email to