From 1927de446c4f4b4c871e66ef507b6743074ed211 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Tue, 16 Jan 2018 19:40:57 +0100 Subject: [PATCH] pjproject: Makefile improvements - Cleans up the flags - Cleans up pkgconfig file so there are no COPTS warnings during Asterisk builds Signed-off-by: Sebastian Kemper --- libs/pjproject/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/pjproject/Makefile b/libs/pjproject/Makefile index 3199469..c349657 100644 --- a/libs/pjproject/Makefile +++ b/libs/pjproject/Makefile @@ -86,8 +86,7 @@ CONFIGURE_ARGS += \ --without-external-pa \ --without-external-webrtc -TARGET_LDFLAGS+=-lc $(LIBGCC) -lm -TARGET_CFLAGS+=$(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS) +TARGET_CFLAGS+=$(TARGET_CPPFLAGS) define Build/Compile $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) @@ -104,6 +103,7 @@ define Build/InstallDev $(foreach m,$(PJPROJECT_LIBS),$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(m)* $(1)/usr/lib/;) $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(SED) 's|$(TARGET_CFLAGS)||g' $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc $(1)/usr/lib/pkgconfig/ endef -- 2.30.2