From ed21cbf109a44ce9b7ee6d9492c721b8bd896bb8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 31 Jan 2020 18:02:08 +0100 Subject: [PATCH] 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 --- lang/luaposix/Makefile | 2 ++ lang/luaposix/scripts/uname | 2 ++ 2 files changed, 4 insertions(+) create mode 100755 lang/luaposix/scripts/uname 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