aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-28 00:11:59 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-28 00:11:59 +0000
commita0d2c6503307b70774730bfd8b9e7e773b112b8a (patch)
tree0ae421c6c6b1d811b5bf8408584ed12b936f510c /package
parent587fc92e29907a5968d3bce2de8ef3aba510fbaa (diff)
downloadupstream-a0d2c6503307b70774730bfd8b9e7e773b112b8a.tar.gz
upstream-a0d2c6503307b70774730bfd8b9e7e773b112b8a.tar.bz2
upstream-a0d2c6503307b70774730bfd8b9e7e773b112b8a.zip
lua: the variable expansion to detect the host os does not work with GNU Make 3.81, replace it with a nested ifeq
SVN-Revision: 18193
Diffstat (limited to 'package')
-rw-r--r--package/lua/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/package/lua/Makefile b/package/lua/Makefile
index 9d9c77b9e4..c8c64badf4 100644
--- a/package/lua/Makefile
+++ b/package/lua/Makefile
@@ -115,10 +115,15 @@ 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) \