From 73982eb20fe7814a3dbe5c3b59c33f9037e20e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Tue, 14 Dec 2021 10:44:29 +0100 Subject: [PATCH] build: Use winebuild --exe mode for fake exe module generation. This fixes steam.exe.so not being able to start from system32 automatically, as the fake module was flagged with IMAGE_FILE_DLL, which caused GetBinaryTypeW to fail. --- make/rules-winemaker.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/rules-winemaker.mk b/make/rules-winemaker.mk index d8e6d123..de8123cb 100644 --- a/make/rules-winemaker.mk +++ b/make/rules-winemaker.mk @@ -31,7 +31,7 @@ $$(OBJ)/.$(1)-build$(3): env $$($(2)_ENV$(3)) \ $$(MAKE) -C "$$($(2)_OBJ$(3))" LIBRARIES="$$($(2)_LDFLAGS)" cd "$$($(2)_OBJ$(3))" && touch "$(basename $(4)).spec" && env $$($(2)_ENV$(3)) \ - winebuild --dll --fake-module -E "$(basename $(4)).spec" -o "$(4).fake" + winebuild --$(lastword $(subst ., ,$(4))) --fake-module -E "$(basename $(4)).spec" -o "$(4).fake" mkdir -p $$($(2)_DST$(3))/lib$(subst 32,,$(3))/wine/fakedlls/ cp -a $$($(2)_OBJ$(3))/$(4).so $$($(2)_DST$(3))/lib$(subst 32,,$(3))/wine/ cp -a $$($(2)_OBJ$(3))/$(4).fake $$($(2)_DST$(3))/lib$(subst 32,,$(3))/wine/fakedlls/$(4)