net/rtpproxy: update flags
authorSebastian Kemper <[email protected]>
Sat, 17 Feb 2018 09:40:32 +0000 (10:40 +0100)
committerSebastian Kemper <[email protected]>
Sat, 17 Feb 2018 09:40:35 +0000 (10:40 +0100)
rtpproxy doesn't use OpenWrt's CPPFLAGS (i.e. used for including
fortify-source headers). Add them to CFLAGS.

Run autoreconf. It's usually a good idea.

Signed-off-by: Sebastian Kemper <[email protected]>
net/rtpproxy/Makefile

index 9a91f63802c8a6b8172981eb3c50a9f1354d7cba..31da89cd3fb663b2bb43d2cee2d2cc734c6b5732 100644 (file)
@@ -23,6 +23,8 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_CHECK_FORMAT_SECURITY:=0
 PKG_INSTALL:=1
 
+PKG_FIXUP:=autoreconf
+
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=COPYING
 PKG_MAINTAINER:=Jiri Slachta <[email protected]>
@@ -52,6 +54,9 @@ endef
 CONFIGURE_VARS += \
         ac_cv_lib_bcg729_initBcg729EncoderChannel=no
 
+# Otherwise OpenWrt's CPPFLAGS are ignored
+TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
+
 define Package/rtpproxy/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtpproxy $(1)/usr/bin/