From: Sergey V. Lobanov Date: Sun, 6 Feb 2022 22:51:24 +0000 (+0300) Subject: kamailio: fix build on macos X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=f902c18fbc49d48746b1abb7cdde8b8fc32af22b;p=feed%2Ftelephony.git kamailio: fix build on macos kamailio macos build fails due to kamailio Makefile checks OS (`uname -s`) and OSREL (`uname -r`). If build host is not Linux, then these checks will provide different results, but OpenWrt is always Linux so target OS should be always Linux. This patch explicitly specifies OS=linux and OSREL=$(LINUX_UNAME_VERSION) to avoid using build host values for target build. Signed-off-by: Sergey V. Lobanov --- diff --git a/net/kamailio/Makefile b/net/kamailio/Makefile index bca0fca..69b45f3 100644 --- a/net/kamailio/Makefile +++ b/net/kamailio/Makefile @@ -235,6 +235,7 @@ PKG_CONFIG_DEPENDS:= \ include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/kernel.mk include $(TOPDIR)/feeds/packages/lang/python/python3-version.mk # Build reproducibly @@ -412,6 +413,8 @@ CPU_MIPS2:=mips32 24kc 34kc 4kec 74kc endif MAKE_FLAGS += \ + OS=linux \ + OSREL=$(LINUX_UNAME_VERSION) \ $(if $(findstring $(call qstrip,$(CONFIG_CPU_TYPE)),$(CPU_MIPS2)),ARCH="mips2",ARCH="$(ARCH)") \ CC_EXTRA_OPTS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ LD="$(TARGET_CC)" \