Browse Source

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 <sergey@lobanov.in>
lilik-openwrt-22.03
Sergey V. Lobanov 2 years ago
committed by Rosen Penev
parent
commit
99515bdf96
2 changed files with 16 additions and 1 deletions
  1. +1
    -1
      lang/luaossl/Makefile
  2. +15
    -0
      lang/luaossl/patches/900_fix_build_on_macos.patch

+ 1
- 1
lang/luaossl/Makefile View 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


+ 15
- 0
lang/luaossl/patches/900_fix_build_on_macos.patch View File

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

Loading…
Cancel
Save