ibrdtn: fix compilation with GCC11
authorRosen Penev <rosenp@gmail.com>
Wed, 7 Jul 2021 04:11:40 +0000 (21:11 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 11 Jul 2021 07:23:55 +0000 (00:23 -0700)
GCC11 defaults to C++17, which does now allow specifying throw().

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/ibrdtn/Makefile

index d85b2573a0ceb8bb56f2ab23ed6b0369c42ac398..a318084abcb2bd7b3dd8ec43d37439a5d8ae4967 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ibrdtn
 PKG_VERSION:=1.0.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases
@@ -37,6 +37,8 @@ CONFIGURE_ARGS += \
        --with-compression \
        --without-glib
 
+TARGET_CXXFLAGS +=-std=c++11
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)
        $(CP) $(PKG_INSTALL_DIR)/* $(1)/