luaposix: use fake uname script to fix OS detection
authorFelix Fietkau <nbd@nbd.name>
Fri, 31 Jan 2020 17:02:08 +0000 (18:02 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 31 Jan 2020 17:02:10 +0000 (18:02 +0100)
Avoid picking up the host OS for detecting the build type
Fixes build on macOS

Signed-off-by: Felix Fietkau <nbd@nbd.name>
lang/luaposix/Makefile
lang/luaposix/scripts/uname [new file with mode: 0755]

index 7aa9a5528f856de8a1c97aa05978ce86bc3d3560..9b9298d4990f786194d932af2b4c2702c6ca7549 100644 (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
 
diff --git a/lang/luaposix/scripts/uname b/lang/luaposix/scripts/uname
new file mode 100755 (executable)
index 0000000..787b647
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+echo Linux