Browse Source

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>
lilik-openwrt-22.03
Felix Fietkau 5 years ago
parent
commit
ed21cbf109
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      lang/luaposix/Makefile
  2. +2
    -0
      lang/luaposix/scripts/uname

+ 2
- 0
lang/luaposix/Makefile 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
- 0
lang/luaposix/scripts/uname View File

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

Loading…
Cancel
Save