[package] lua: the variable expansion to detect the host os does not work with GNU...
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Oct 2009 00:11:59 +0000 (00:11 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Oct 2009 00:11:59 +0000 (00:11 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18193 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/lua/Makefile

index 9d9c77b..c8c64ba 100644 (file)
@@ -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) \
This page took 0.022198 seconds and 4 git commands to generate.