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.99rst.org/?a=commitdiff_plain;h=ed21cbf109a44ce9b7ee6d9492c721b8bd896bb8;p=openwrt-packages.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 7aa9a5528..9b9298d49 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 000000000..787b647f4 --- /dev/null +++ b/lang/luaposix/scripts/uname @@ -0,0 +1,2 @@ +#!/bin/sh +echo Linux