druntime: Restore functionality to generate 32-bit OMF import libraries

This commit is contained in:
Martin Kinkelin 2023-12-16 00:21:26 +01:00 committed by Nicholas Wilson
parent cf9df8437c
commit f81acf47f8
2 changed files with 10 additions and 1 deletions

8
druntime/def/Makefile Normal file
View file

@ -0,0 +1,8 @@
LIBS:=glu32 odbc32 opengl32 rpcrt4 shell32 version wininet winspool
.PHONY: implibs
implibs: $(addsuffix .lib,$(LIBS))
%.lib: %.def
implib $@ $<

View file

@ -1,3 +1,4 @@
Module-Definition (.Def) Files
========================================================
These files are used by [druntime/win32.mak](../win32.mak) and [druntime/win64.mak](../win64.mak) to build D runtime library.
The local Makefile uses these files to generate import libraries for the 32-bit Windows *OMF* toolchain (`-m32omf`).
These import libraries are bundled with the DMD Windows packages, so this is used by https://github.com/dlang/installer.