Skip to contentSkip to conversation

tools: correct build in directory below tools

PATCH In review Juergen Gross 2 participants 4 messages Mar 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: correct build in directory below tools

Recent changes to create *.pc files introduced a bug when trying to build a library from a directory below tools as PKG_CONFIG_DIR wouldn't be set. Correct this by adding a default value to Rules.mk.

---
 tools/Rules.mk | 2 ++
 1 file changed, 2 insertions(+)
tools/Rules.mk +2 -0
index 8b8c48e..a888560 100644
@@ -249,6 +249,8 @@ $(XEN_ROOT)/config/Tools.mk:
 	$(error You have to run ./configure before building or installing the tools)
 endif
 
+PKG_CONFIG_DIR ?= $(XEN_ROOT)/tools/pkg-config
+
 $(PKG_CONFIG_DIR)/%.pc: %.pc.in Makefile
 	mkdir -p $(PKG_CONFIG_DIR)
 	@sed -e 's!@@version@@!$(PKG_CONFIG_VERSION)!g' \
Signature · 7 lines
2.10.2


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

PATCH 1/1 tools/libxl: correct distclean target

Commit 3e5f1a63b53920763 ("tools: adapt xenlight.pc and xlutil.pc to new pkg-config scheme") introduced an error for "make distclean" as *.pc.in are deleted which are now files in git.

---
 tools/libxl/Makefile | 1 -
 1 file changed, 1 deletion(-)
tools/libxl/Makefile +0 -1
index 12ab2a1..566b706 100644
@@ -337,7 +337,6 @@ clean:
 	$(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR) clean
 
 distclean: clean
-	$(RM) -f xenlight.pc.in xlutil.pc.in
 
 realclean: distclean
 	$(RM) -f $(AUTOSRCS) $(AUTOINCS)
Signature · 7 lines
2.10.2


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#2 lore raw

Re: [PATCH] tools/libxl: correct distclean target

Quoted 5 lines · Juergen Gross

Commit 3e5f1a63b53920763 ("tools: adapt xenlight.pc and xlutil.pc to new pkg-config scheme") introduced an error for "make distclean" as *.pc.in are deleted which are now files in git.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Acked-by on v1 1/1
#3 lore raw
In reply to Juergen Gross
Quoted 5 lines · Juergen Gross

Recent changes to create *.pc files introduced a bug when trying to build a library from a directory below tools as PKG_CONFIG_DIR wouldn't be set. Correct this by adding a default value to Rules.mk.

Hmm... This isn't pretty.

But off the top of my head I can't think of anything better, and to fix the immediate issue:

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel