summaryrefslogtreecommitdiffstats
path: root/plugins/luarocks
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-12-01 20:57:00 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-12-06 02:38:23 (GMT)
commitc7885483fda44a5db7232fa0e0382d17b61f1d38 (patch)
treea08b69f0084dc4a75e85ae378c58e23348365a96 /plugins/luarocks
parent43cb3196e67720ff6cd6bd26e10269dddc5fa3ff (diff)
downloadmxe-c7885483fda44a5db7232fa0e0382d17b61f1d38.zip
mxe-c7885483fda44a5db7232fa0e0382d17b61f1d38.tar.gz
mxe-c7885483fda44a5db7232fa0e0382d17b61f1d38.tar.bz2
luarocks: separate build and install
> install doesn't depend on build so (on OSX) the symlink is > created first and doesn't have execute permissions. These > steps should be separated. See #1017
Diffstat (limited to 'plugins/luarocks')
-rw-r--r--plugins/luarocks/luarocks.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/luarocks/luarocks.mk b/plugins/luarocks/luarocks.mk
index 4d14b58..f5fa23e 100644
--- a/plugins/luarocks/luarocks.mk
+++ b/plugins/luarocks/luarocks.mk
@@ -29,9 +29,10 @@ define $(PKG)_BUILD_SHARED
--with-lua-bin='$(PREFIX)/bin' \
--with-downloader='wget' \
--with-md5-checker='openssl'
- $(MAKE) -C '$(1)' build install \
+ $(MAKE) -C '$(1)' build \
LUAROCKS_UNAME_S="MXE" \
LUAROCKS_UNAME_M="$(TARGET)"
+ $(MAKE) -C '$(1)' install
ln -sf '$(PREFIX)/$(TARGET)/bin/luarocks' '$(PREFIX)/bin/$(TARGET)-luarocks'
# create wine wrapper for testing