From 4cc2afdcdc6891c5546e94e8a15bb9c96864acd6 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 3 Feb 2018 21:42:53 +0100 Subject: [PATCH 1/2] yate: Prevent build failures due to inclusion of fortify-source headers yate cannot be compiled against fortify-source headers at this moment: In file included from /home/sk/tmp/lede/staging_dir/toolchain-x86_64_gcc-5.5.0_musl/include/fortify/unistd.h:23:0, from ../yateclass.h:32, from ../yatengine.h:29, from ../yatephone.h:29, from server/ysnmpagent.cpp:22: /home/sk/tmp/lede/staging_dir/toolchain-x86_64_gcc-5.5.0_musl/include/fortify/fortify-headers.h:20:42: error: type of 'TelEngine::strcat' is unknown To work around this remove CPPFLAGS from CFLAGS. Signed-off-by: Sebastian Kemper --- net/yate/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/yate/Makefile b/net/yate/Makefile index 160d583..86c75a3 100644 --- a/net/yate/Makefile +++ b/net/yate/Makefile @@ -83,9 +83,6 @@ define Package/$(PKG_NAME)-collection-basic TITLE := Basic Yate Server endef -# Otherwise yate ignores CPPFLAGS -TARGET_CFLAGS += $(TARGET_CPPFLAGS) - CONFIGURE_ARGS+= \ $(if $(CONFIG_x86_64),--enable-sse2) \ --disable-sctp \ From c8a788a164a3376fc8856284b8a79ec6429dc589 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 3 Feb 2018 21:49:23 +0100 Subject: [PATCH 2/2] kamailio-5.x: copy symbolic links instead of hard links Currently three copies of every library are installed. Save space by installing symbolic links instead. Signed-off-by: Sebastian Kemper --- net/kamailio-5.x/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 9882dbc..97e08ba 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -57,7 +57,7 @@ define Package/kamailio5/install $(PKG_INSTALL_DIR)/usr/sbin/kam{ailio,cmd,ctl,dbctl} \ $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/lib/kamailio/modules - $(INSTALL_BIN) \ + $(CP) \ $(PKG_INSTALL_DIR)/usr/lib/kamailio/lib*.so* \ $(1)/usr/lib/kamailio/ $(INSTALL_DIR) $(1)/etc/kamailio