X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/dfe29b760d974565e442ae25b5d6f50cd4851fc4..7226842ea8250a2f262298b6386c62353c1a8ff9:/package/lua/Makefile diff --git a/package/lua/Makefile b/package/lua/Makefile index e314341d9..c8c64badf 100644 --- a/package/lua/Makefile +++ b/package/lua/Makefile @@ -111,14 +111,19 @@ define Build/Compile install endef -define Build/Configure +define Host/Configure $(SED) 's,"/usr/local/","$(STAGING_DIR_HOST)/",' $(HOST_BUILD_DIR)/src/luaconf.h endef -LUA_OS.Darwin:=macosx -LUA_OS.FreeBSD:=freebsd -LUA_OS:=$(LUA_OS.$(HOST_OS)) -LUA_OS?=linux +ifeq ($(HOST_OS),Darwin) + LUA_OS:=macosx +else + ifeq ($(HOST_OS),FreeBSD) + LUA_OS:=freebsd + else + LUA_OS:=linux + endif +endif define Host/Compile $(MAKE) -C $(HOST_BUILD_DIR) \