Browse Source

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
Jo-Philipp Wich 16 years ago
parent
commit
a0d2c65033
1 changed files with 9 additions and 4 deletions
  1. 9 4
      package/lua/Makefile

+ 9 - 4
package/lua/Makefile

@@ -115,10 +115,15 @@ define Host/Configure
 	$(SED) 's,"/usr/local/","$(STAGING_DIR_HOST)/",' $(HOST_BUILD_DIR)/src/luaconf.h
 	$(SED) 's,"/usr/local/","$(STAGING_DIR_HOST)/",' $(HOST_BUILD_DIR)/src/luaconf.h
 endef
 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
 define Host/Compile
 	$(MAKE) -C $(HOST_BUILD_DIR) \
 	$(MAKE) -C $(HOST_BUILD_DIR) \