From 4c8e05237434c36e4a28dae01e4c6b26078d64ca Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 24 Feb 2018 10:49:43 +0100 Subject: [PATCH 1/2] libsrtp: remove $(FPIC) from TARGET_CFLAGS bgg729 already makes sure that the compiler emits position-independent code. Adding $(FPIC) makes no difference. In addition the libsrtp build system puts its own flag behind the CFLAGS, overriding whatever was set before. Signed-off-by: Sebastian Kemper --- libs/libsrtp/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/libsrtp/Makefile b/libs/libsrtp/Makefile index 3f102f3..f54c776 100644 --- a/libs/libsrtp/Makefile +++ b/libs/libsrtp/Makefile @@ -1,7 +1,7 @@ # -# Copyright (C) 2006-2017 OpenWrt.org +# Copyright (C) 2006-2018 OpenWrt.org # Copyright (C) 2011 Victor Seva -# Copyright (C) 2017 Jiri Slachta +# Copyright (C) 2017 - 2018 Jiri Slachta # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -27,7 +27,6 @@ PKG_MAINTAINER:=Jiri Slachta include $(INCLUDE_DIR)/package.mk -TARGET_CFLAGS += $(FPIC) CONFIGURE_ARGS += \ --disable-stdout \ --enable-syslog From 07bd27da7729a3f34740cf47d21b2b16b709c596 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 24 Feb 2018 10:51:15 +0100 Subject: [PATCH 2/2] libsrtp: install additional symlink Makes sure that the libsrtp.so symlink gets installed on the target devices as well. Signed-off-by: Sebastian Kemper --- libs/libsrtp/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libsrtp/Makefile b/libs/libsrtp/Makefile index f54c776..c0899ed 100644 --- a/libs/libsrtp/Makefile +++ b/libs/libsrtp/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libsrtp PKG_VERSION:=1.6.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/cisco/libsrtp.git @@ -64,7 +64,7 @@ endef define Package/libsrtp/install $(INSTALL_DIR) $(1)/usr/lib $(CP) \ - $(PKG_INSTALL_DIR)/usr/lib/libsrtp.so.* \ + $(PKG_INSTALL_DIR)/usr/lib/libsrtp.so* \ $(1)/usr/lib/ endef