On 8/16/21 12:42 PM, Martin Storsjö wrote:
When GNU dlltool generates import libraries, it picks a semi-random
prefix string for its file names based on the pid of the process.
Normally, the prefix doesn't matter much, but when we merge multiple
import libraries into one, like for libucrt.a, the prefixes need
to be unique (otherwise their import tables get entangled).

In practice it has been noticed that these aren't always unique
(see https://github.com/msys2/MINGW-packages/issues/9363).
Instead pass an option to give it use a unique prefix for each
library (based on the target dll name).

LLVM dlltool uses a different format of import library, where
there's no corresponding semi random prefix. LLVM dlltool doesn't
support the --temp-prefix option either (yet). Therefore, try to
detect whether the option is supported.

Based on a Debian patch by Stephen Kitt.

Patch looks good to me.



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to