在 2026-8-26 14:50, TheShermanTanker 写道:
From: Julian Waters <[email protected]>

The C runtime has the configure option --enable-delay-import-libs to
enable the creation of delay loaded libraries, however this option
does not work. Given such libraries can be useful to have for users
it would be helpful to properly support them.

mingw-w64-crt/ChangeLog:

        * Makefile.am (AM_DLLTOOLFLAGS): Properly handle delay loaded library 
name.

Signed-off-by: TheShermanTanker <[email protected]>
---
  mingw-w64-crt/Makefile.am | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

This patch looks fine, so I have pushed it.

In order to install such by-product libraries, you have two options.

One is to install them as data (these variables have to be defined as empty 
first):

   nodist_lib_DATA += libfoo.delayimp.a
   CLEANFILES += libfoo.delayimp.a

The other is to install them as static libraries, with no source file:

   lib_LIBRARIES = libfoo.delayimp.a
   libfoo_delayimp_a_DEPENDENCIES = libfoo.a
   libfoo_delayimp_a_SOURCES =
   libfoo_delayimp_a_AR = true
   libfoo_delayimp_a_RANLIB = true


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to