dahdi-tools: add -fcommon workaround for gcc10 553/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 2 Aug 2020 10:28:09 +0000 (12:28 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 2 Aug 2020 10:28:34 +0000 (12:28 +0200)
This works around the build failure with gcc-10 until there is a patch
for dahdi-tools that is reviewed and acknowledged by upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/dahdi-tools/Makefile

index 60277e96ea038d49aadf5e8ab9c1dc323401f044..b150986d3c719118d16e770af0c43950d3f5aa58 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dahdi-tools
 PKG_VERSION:=3.0.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-tools/releases
@@ -54,6 +54,9 @@ endef
 
 CONFIGURE_ARGS+=--disable-silent-rules
 
+# https://issues.asterisk.org/jira/browse/DAHTOOL-85
+TARGET_CFLAGS+=-fcommon
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtonezone.{a,so*} \