From 99515bdf96ade128a39afbc20d35cac38f5fe9bb Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Fri, 7 Jan 2022 23:15:47 +0300 Subject: [PATCH] luaossl: fix build on macos luaossl detects OS and changes compilation flags depends on OS. If Darwin is detected then it adds GCC non-compatible flags. OpenWrt is always Linux so build OS detection is disabled Signed-off-by: Sergey V. Lobanov --- lang/luaossl/Makefile | 2 +- lang/luaossl/patches/900_fix_build_on_macos.patch | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 lang/luaossl/patches/900_fix_build_on_macos.patch diff --git a/lang/luaossl/Makefile b/lang/luaossl/Makefile index 62e6c427df..c1cc763471 100644 --- a/lang/luaossl/Makefile +++ b/lang/luaossl/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luaossl PKG_VERSION:=20200709 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Siger Yang PKG_MIRROR_HASH:=6dbca3cdc50ed7e3b0821783da2407accfb6d25addc3edf1d8e17b00530f5a25 diff --git a/lang/luaossl/patches/900_fix_build_on_macos.patch b/lang/luaossl/patches/900_fix_build_on_macos.patch new file mode 100644 index 0000000000..5ceb99b67c --- /dev/null +++ b/lang/luaossl/patches/900_fix_build_on_macos.patch @@ -0,0 +1,15 @@ +commit 8686cae32fc04045c1404c2febf84242c298bf0d +Author: Sergey V. Lobanov +Date: Fri Jan 7 23:00:03 2022 +0300 + + fix build on macos + + OpenWrt is always Linux. Disable OS detection + +--- a/mk/vendor.os ++++ b/mk/vendor.os +@@ -1,3 +1,3 @@ + #!/bin/sh + +-uname -s ++echo Linux