coturn: fix build on macos 734/head
authorSergey V. Lobanov <sergey@lobanov.in>
Tue, 1 Feb 2022 16:49:03 +0000 (19:49 +0300)
committerSergey V. Lobanov <sergey@lobanov.in>
Tue, 1 Feb 2022 16:49:03 +0000 (19:49 +0300)
coturn build fails on macos due using `ar -r` by default, but macos
system `ar` is not compatible with the objects generated by OpenWrt
GCC toolchain.

This patch redefines ARCHIVERCMD="$(TARGET_AR) -r" to make it possible
to build coturn on macos build host.

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

index f073692022d1aae2042f42e20168e70b4ed92bc3..728c482267f69d4039df0339571a7f7558a96ded 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=coturn
 PKG_VERSION:=4.5.2
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/coturn/coturn/tar.gz/$(PKG_VERSION)?
@@ -129,6 +129,7 @@ CONFIGURE_ARGS+= \
        --turndbdir=/etc/turnserver
 
 CONFIGURE_VARS+= \
+       ARCHIVERCMD="$(TARGET_AR) -r" \
        LIBEV_OK=1 \
        TURN_NO_PROMETHEUS=1 \
        TURN_NO_SCTP=1 \