tools: correct build in directory below tools
authorJuergen Gross <jgross@suse.com>
Tue, 14 Mar 2017 15:04:41 +0000 (16:04 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 14 Mar 2017 15:25:25 +0000 (15:25 +0000)
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.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/Rules.mk

index 8b8c48e14a3ddcbfa8d719bda8aad9ae0170529a..a888560abe15362804aab4bcd9113b64fcb43e1f 100644 (file)
@@ -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' \