mxe-conf: create always failing wine dummy

Now dlfcn-win32 can't detect wine.
From log/dlfcn-win32_i686-w64-mingw32.static:

    static: yes
    shared: no
    wine:

Previously wine was set to "yes wine".

fix #995
This commit is contained in:
Boris Nagaev 2015-11-15 19:07:38 +03:00
parent 047efe0f21
commit f499671318
1 changed files with 8 additions and 0 deletions

View File

@ -100,4 +100,12 @@ define $(PKG)_BUILD_$(BUILD)
#create readonly directory to force wine to fail
$(INSTALL) -m444 -d "$$WINEPREFIX"
#create script "wine" in a directory which is in PATH
mkdir -p '$(PREFIX)/$(BUILD)/bin/'
(echo '#!/usr/bin/env bash'; \
echo 'exit 1'; \
) \
> '$(PREFIX)/$(BUILD)/bin/wine'
chmod 0755 '$(PREFIX)/$(BUILD)/bin/wine'
endef