From 64a481aee65956c97d2627c9eca81a55d584bbfe Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 13 Dec 2011 13:32:23 +0100 Subject: stubdom: allow to build with older tool chain GNU make prior to 3.81 doesn't support $(realpath ...). This fixes a regression introduced in 23368:0f670f5146c8 (the option tested via cc-option-add got interpreted as the argument of the -I compiler option, as its intended argument was blank, and hence the compiler was falsely considered to support *any* option in the pciutils sub-tree). Signed-off-by: Jan Beulich Acked-by: Keir Fraser --- Config.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Config.mk') diff --git a/Config.mk b/Config.mk index e089fbd7c8..3ba6479766 100644 --- a/Config.mk +++ b/Config.mk @@ -4,6 +4,9 @@ ifeq ($(filter /%,$(XEN_ROOT)),) $(error XEN_ROOT must be absolute) endif +# fallback for older make +realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))"))) + -include $(XEN_ROOT)/.config # A debug build of Xen and tools? -- cgit v1.2.3