crt: Support delay loaded libraries 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 <tanksherman27@gmail.com> Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index 1d7eb87..de68408 100644 --- a/mingw-w64-crt/Makefile.am +++ b/mingw-w64-crt/Makefile.am
@@ -51,7 +51,7 @@ AM_DLLTOOLFLAGS += --temp-prefix $(basename $@) endif if DELAY_IMPORT_LIBS - AM_DLLTOOLFLAGS += --output-delaylib $@.delayimp.a + AM_DLLTOOLFLAGS += --output-delaylib $(basename $@).delayimp.a endif DTLIBARM32=$(DTDEFARM32) $(top_srcdir)/`echo $@ | $(SED) 's|/lib|/|;s|\.a|.def|'` DTLIBARM64=$(DTDEFARM64) $(top_srcdir)/`echo $@ | $(SED) 's|/lib|/|;s|\.a|.def|'`