aboutsummaryrefslogtreecommitdiff
path: root/package/pkg-luarocks.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/pkg-luarocks.mk')
-rw-r--r--package/pkg-luarocks.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/pkg-luarocks.mk b/package/pkg-luarocks.mk
index 81a6cf208a..fd79855878 100644
--- a/package/pkg-luarocks.mk
+++ b/package/pkg-luarocks.mk
@@ -112,6 +112,7 @@ define $(2)_INSTALL_TARGET_CMDS
LUAROCKS_CONFIG=$$(LUAROCKS_CONFIG_FILE) \
$$(LUAROCKS_RUN_CMD) make --keep --deps-mode none \
--tree "$$(TARGET_DIR)/usr" \
+ DEPS_DIR="$$(STAGING_DIR)/usr" \
LUA_INCDIR="$$(STAGING_DIR)/usr/include" \
LUA_LIBDIR="$$(STAGING_DIR)/usr/lib" \
CC=$$(TARGET_CC) \
@@ -127,6 +128,7 @@ define $(2)_INSTALL_CMDS
cd $$($(2)_SRCDIR) && \
LUAROCKS_CONFIG=$$(HOST_LUAROCKS_CONFIG_FILE) \
$$(LUAROCKS_RUN_CMD) make --keep --deps-mode none \
+ DEPS_DIR="$$(HOST_DIR)" \
CFLAGS="$$(HOST_LUAROCKS_CFLAGS)" \
LIBFLAG="-shared $$(HOST_LDFLAGS)" \
$$($(2)_BUILD_OPTS) $$($(2)_ROCKSPEC)