pjproject: Makefile improvements
authorSebastian Kemper <sebastian_ml@gmx.net>
Tue, 16 Jan 2018 18:40:57 +0000 (19:40 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Tue, 16 Jan 2018 18:41:00 +0000 (19:41 +0100)
- Cleans up the flags
- Cleans up pkgconfig file so there are no COPTS warnings during
  Asterisk builds

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/pjproject/Makefile

index 319946921ba5abe8141312ef8e0ae5bda8ea0592..c349657559d86513ad6d94b676d0f61e8c5bfc9d 100644 (file)
@@ -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