tools/Rules.mk: Cleanup %.pc rules

PKG_CONFIG_VARS isn't set anymore, so is dead logic.

For "local" pkg-config file, we only have one headers directory now,
"tools/include", so there is no need to specify it twice. So remove
$(CFLAGS_xeninclude) from "Cflags:".

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Anthony PERARD authored and Andrew Cooper committed 2021-12-16 20:27:13 +00:00
1 parent e2ddc82be4
commit fc93c3ac4f
1 file changed
+1 -3
+1 -3
View File
@@ -184,12 +184,11 @@ $(PKG_CONFIG_DIR)/%.pc: Makefile $(XEN_ROOT)/tools/Rules.mk $(PKG_CONFIG_DIR)
echo "prefix=$(PKG_CONFIG_PREFIX)"; \
echo "includedir=$(PKG_CONFIG_INCDIR)"; \
echo "libdir=$(PKG_CONFIG_LIBDIR)"; \
$(foreach var,$(PKG_CONFIG_VARS),echo $(var);) \
echo ""; \
echo "Name: $(PKG_CONFIG_NAME)"; \
echo "Description: $(PKG_CONFIG_DESC)"; \
echo "Version: $(PKG_CONFIG_VERSION)"; \
echo "Cflags: -I\$${includedir} $(CFLAGS_xeninclude)"; \
echo "Cflags: -I\$${includedir}"; \
echo "Libs: -L\$${libdir} $(PKG_CONFIG_USELIBS) -l$(PKG_CONFIG_LIB)"; \
echo "Libs.private: $(PKG_CONFIG_LIBSPRIV)"; \
echo "Requires.private: $(PKG_CONFIG_REQPRIV)"; \
@@ -200,7 +199,6 @@ $(PKG_CONFIG_DIR)/%.pc: Makefile $(XEN_ROOT)/tools/Rules.mk $(PKG_CONFIG_DIR)
echo "prefix=$(PKG_CONFIG_PREFIX)"; \
echo "includedir=$(PKG_CONFIG_INCDIR)"; \
echo "libdir=$(PKG_CONFIG_LIBDIR)"; \
$(foreach var,$(PKG_CONFIG_VARS),echo $(var);) \
echo ""; \
echo "Name: $(PKG_CONFIG_NAME)"; \
echo "Description: $(PKG_CONFIG_DESC)"; \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.