mirror of https://git.wownero.com/dsc/mxe.git
set WINEPREFIX to a readonly directory to force wine to fail
fixes #841
This commit is contained in:
parent
ad20853b2d
commit
8e2d0e85c5
2
Makefile
2
Makefile
|
@ -142,6 +142,8 @@ endef
|
|||
ENV_WHITELIST := PATH LANG MAKE% MXE% %PROXY %proxy LD_LIBRARY_PATH ACLOCAL_PATH
|
||||
unexport $(filter-out $(ENV_WHITELIST),$(shell env | cut -d '=' -f1))
|
||||
|
||||
export WINEPREFIX=$(PREFIX)/readonly
|
||||
|
||||
SHORT_PKG_VERSION = \
|
||||
$(word 1,$(subst ., ,$($(1)_VERSION))).$(word 2,$(subst ., ,$($(1)_VERSION)))
|
||||
|
||||
|
|
|
@ -51,6 +51,9 @@ define $(PKG)_BUILD_COMMON
|
|||
echo 'exec cmake -DCMAKE_TOOLCHAIN_FILE="$(CMAKE_TOOLCHAIN_FILE)" "$$@"') \
|
||||
> '$(PREFIX)/bin/$(TARGET)-cmake'
|
||||
chmod 0755 '$(PREFIX)/bin/$(TARGET)-cmake'
|
||||
|
||||
#create readonly directory to force wine to fail
|
||||
$(INSTALL) -m444 -d "$$WINEPREFIX"
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
|
|
Loading…
Reference in New Issue