Browse Source

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 <sergey@lobanov.in>
lilik-openwrt-22.03
Sergey V. Lobanov 3 years ago
committed by Rosen Penev
parent
commit
0528707fd7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      net/chaosvpn/Makefile

+ 2
- 1
net/chaosvpn/Makefile View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=chaosvpn PKG_NAME:=chaosvpn
PKG_VERSION:=2.19 PKG_VERSION:=2.19
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/ryd/chaosvpn/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/ryd/chaosvpn/tar.gz/v$(PKG_VERSION)?
@ -38,6 +38,7 @@ define Package/chaosvpn/conffiles
endef endef
MAKE_FLAGS += \ MAKE_FLAGS += \
OS=Linux \
COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)"
define Package/chaosvpn/install define Package/chaosvpn/install


Loading…
Cancel
Save