remove /usr/{include,lib} ref from libxml2 pkgconfig
[openwrt/svn-archive/archive.git] / openwrt / package / libxml2 / Makefile
index c08d5fe8b23f28ec49d29fbe783dd691ef2ffd39..bf71ef70c6c09fa9c8bd5ecea10222562cdf3845 100644 (file)
@@ -107,6 +107,8 @@ $(STAGING_DIR)/usr/lib/libxml2.so: $(PKG_BUILD_DIR)/.built
        $(SED) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR)/usr/bin/xml2-config
        $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/bin/xml2-config
        $(SED) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR)/usr/bin/xml2-config
        $(SED) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR)/usr/bin/xml2-config
        $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/bin/xml2-config
        $(SED) 's,-L$(STAGING_DIR)/usr/lib,,g' $(STAGING_DIR)/usr/bin/xml2-config
+       $(SED) 's,-I$${includedir}/libxml2,,g' $(STAGING_DIR)/usr/lib/pkgconfig/libxml-2.0.pc
+       $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libxml-2.0.pc
        touch $@
 
 install-dev: $(STAGING_DIR)/usr/lib/libxml2.so
        touch $@
 
 install-dev: $(STAGING_DIR)/usr/lib/libxml2.so