luaossl: fix build on macos
authorSergey V. Lobanov <sergey@lobanov.in>
Fri, 7 Jan 2022 20:15:47 +0000 (23:15 +0300)
committerRosen Penev <rosenp@gmail.com>
Tue, 18 Jan 2022 05:12:53 +0000 (21:12 -0800)
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 <sergey@lobanov.in>
lang/luaossl/Makefile
lang/luaossl/patches/900_fix_build_on_macos.patch [new file with mode: 0644]

index 62e6c427dfc7e2bd247f323ac0035b63aaaa3aaf..c1cc763471a5d5c3a648ff58f6d6c37003d5f74d 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luaossl
 PKG_VERSION:=20200709
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_MAINTAINER:=Siger Yang <sigeryeung@gmail.com>
 
 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 (file)
index 0000000..5ceb99b
--- /dev/null
@@ -0,0 +1,15 @@
+commit 8686cae32fc04045c1404c2febf84242c298bf0d
+Author: Sergey V. Lobanov <sergey@lobanov.in>
+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