From: Sebastian Kemper Date: Tue, 16 Jan 2018 18:40:57 +0000 (+0100) Subject: pjproject: Makefile improvements X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1927de446c4f4b4c871e66ef507b6743074ed211;p=feed%2Ftelephony.git 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 --- 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