libreswan: fix build on macos
authorSergey V. Lobanov <sergey@lobanov.in>
Thu, 20 Jan 2022 20:57:23 +0000 (23:57 +0300)
committerRosen Penev <rosenp@gmail.com>
Fri, 21 Jan 2022 04:49:08 +0000 (20:49 -0800)
libreswan makefile detects macos (darwin) and changes build logic
but OpenWrt is always Linux so it is required to specify linux as
target platfrom

This patch specifies Linux as a target platfrom

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
net/libreswan/Makefile

index 2b6c96f453de53fbc6e0f966801d084128684ba6..263d6e03f6ed62c7e0957a961c365f3cb360e07b 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libreswan
 PKG_VERSION:=4.6
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://download.libreswan.org/
@@ -85,6 +85,8 @@ MAKE_FLAGS+= \
     FINALRUNDIR="/var/run/pluto" \
     FINALNSSDIR="/etc/ipsec.d" \
     MODPROBEARGS="-q" \
+    OSDEP=linux \
+    BUILDENV=linux \
     ARCH="$(LINUX_KARCH)" \
 
 define Build/Prepare