mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-02-25 21:11:14 +03:00
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.
This commit is contained in:
parent
9b8046131d
commit
73982eb20f
@ -31,7 +31,7 @@ $$(OBJ)/.$(1)-build$(3):
|
|||||||
env $$($(2)_ENV$(3)) \
|
env $$($(2)_ENV$(3)) \
|
||||||
$$(MAKE) -C "$$($(2)_OBJ$(3))" LIBRARIES="$$($(2)_LDFLAGS)"
|
$$(MAKE) -C "$$($(2)_OBJ$(3))" LIBRARIES="$$($(2)_LDFLAGS)"
|
||||||
cd "$$($(2)_OBJ$(3))" && touch "$(basename $(4)).spec" && env $$($(2)_ENV$(3)) \
|
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/
|
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).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)
|
cp -a $$($(2)_OBJ$(3))/$(4).fake $$($(2)_DST$(3))/lib$(subst 32,,$(3))/wine/fakedlls/$(4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user