From: Felix Fietkau Date: Fri, 31 Jan 2020 17:02:08 +0000 (+0100) Subject: luaposix: use fake uname script to fix OS detection X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ed21cbf109a44ce9b7ee6d9492c721b8bd896bb8;p=feed%2Fpackages.git luaposix: use fake uname script to fix OS detection Avoid picking up the host OS for detecting the build type Fixes build on macOS Signed-off-by: Felix Fietkau --- diff --git a/lang/luaposix/Makefile b/lang/luaposix/Makefile index 7aa9a5528f..9b9298d499 100644 --- a/lang/luaposix/Makefile +++ b/lang/luaposix/Makefile @@ -34,6 +34,8 @@ define Package/luaposix/description to various low level libc functions. endef +TARGET_PATH_PKG:=$(CURDIR)/scripts:$(TARGET_PATH_PKG) + TARGET_CFLAGS += \ -I$(STAGING_DIR)/usr/include diff --git a/lang/luaposix/scripts/uname b/lang/luaposix/scripts/uname new file mode 100755 index 0000000000..787b647f4f --- /dev/null +++ b/lang/luaposix/scripts/uname @@ -0,0 +1,2 @@ +#!/bin/sh +echo Linux