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 <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2020-01-31 18:02:08 +01:00
parent be3bcda92a
commit ed21cbf109
2 changed files with 4 additions and 0 deletions

View File

@ -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

2
lang/luaposix/scripts/uname Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
echo Linux