From 0528707fd7d43223c104cb43ee2ee8bfddcdf821 Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Tue, 1 Feb 2022 01:07:56 +0300 Subject: [PATCH] chaosvpn: fix build on macos chaosvpn Makefile detects Darwin (macos) and changes compilation flags for macos target, but OpenWrt is always Linux so build fails. This patch redefines OS=Linux to use Linux compilation flags. Signed-off-by: Sergey V. Lobanov --- net/chaosvpn/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/chaosvpn/Makefile b/net/chaosvpn/Makefile index 3329357514..347b6eba18 100644 --- a/net/chaosvpn/Makefile +++ b/net/chaosvpn/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=chaosvpn PKG_VERSION:=2.19 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/ryd/chaosvpn/tar.gz/v$(PKG_VERSION)? @@ -38,6 +38,7 @@ define Package/chaosvpn/conffiles endef MAKE_FLAGS += \ + OS=Linux \ COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" define Package/chaosvpn/install