mosh: fix compilation with new Protobuf
authorGeorge Sapkin <redacted>
Sat, 9 May 2026 23:48:37 +0000 (02:48 +0300)
committerGeorge Sapkin <redacted>
Wed, 13 May 2026 17:57:12 +0000 (20:57 +0300)
Switch mosh to -std=c++17 to fix compilation with newer Protobuf.

Link with libatomic necessary for MIPS and PowerPC.

Signed-off-by: George Sapkin <redacted>
net/mosh/Makefile

index 32b100d114518041c58c2c01a2df924e55b1dd4c..f2c8575a610ceddd009ae73c13619315b877f061 100644 (file)
@@ -1,15 +1,14 @@
 #
 # Copyright (C) 2011-2013 Entware
 # Copyright (C) 2018 Jakub Tymejczyk <jakub.tymejczyk.pl>
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
 #
+# SPDX-License-Identifier: GPL-2.0-only
 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mosh
 PKG_VERSION:=1.4.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://mosh.org/
@@ -31,7 +30,11 @@ define Package/mosh/Default
   CATEGORY:=Network
   SUBMENU:=SSH
   TITLE:=Mosh mobile shell
-  DEPENDS:=+libncursesw +libopenssl +protobuf
+  DEPENDS:= \
+    +libatomic \
+    +libncursesw \
+    +libopenssl \
+    +protobuf
   URL:=https://mosh.org/
 endef
 
@@ -67,7 +70,6 @@ $(call Package/mosh/Default)
     +perlbase-xsloader
 endef
 
-
 define Package/mosh/Default/description
  Mosh is a remote terminal application that allows roaming, supports
  intermittent connectivity, and provides intelligent local echo and line
@@ -97,8 +99,8 @@ CONFIGURE_ARGS += \
 CONFIGURE_VARS += \
        ac_cv_have_decl_ffs=yes
 
-TARGET_CXXFLAGS += -std=c++11
-TARGET_LDFLAGS += -lncurses
+TARGET_CXXFLAGS += -std=c++17
+TARGET_LDFLAGS += -latomic -lncurses
 
 define Package/mosh-client/install
        $(INSTALL_DIR) $(1)/usr/bin
git clone https://git.99rst.org/PROJECT