diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-12-13 13:32:23 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-12-13 13:32:23 +0100 |
commit | 64a481aee65956c97d2627c9eca81a55d584bbfe (patch) | |
tree | 756fcf7d14e1e56c91d63ee3da529a8895b7659e /Config.mk | |
parent | e941abd7cab1c071ef0eb49baae1f36dddc310eb (diff) | |
download | xen-64a481aee65956c97d2627c9eca81a55d584bbfe.tar.gz xen-64a481aee65956c97d2627c9eca81a55d584bbfe.tar.bz2 xen-64a481aee65956c97d2627c9eca81a55d584bbfe.zip |
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 <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'Config.mk')
-rw-r--r-- | Config.mk | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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? |