[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] build: remove more absolute paths from dependency tracking files



commit 10bb8aa0d5d029bd56da4a2a92e1e42bef880210
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Wed Feb 24 12:47:34 2021 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Feb 24 12:47:34 2021 +0100

    build: remove more absolute paths from dependency tracking files
    
    d6b12add90da ("DEPS handling: Remove absolute paths from references to
    cwd") took care of massaging the dependencies of the output file, but
    for our passing of -MP to the compiler to take effect the same needs to
    be done on the "phony" rules that the compiler emits.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Ian Jackson <iwj@xxxxxxxxxxxxxx>
    Release-Acked-by: Ian Jackson <iwj@xxxxxxxxxxxxxx>
---
 Config.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Config.mk b/Config.mk
index 259e68863d..eb28e498be 100644
--- a/Config.mk
+++ b/Config.mk
@@ -63,7 +63,7 @@ DEPS_INCLUDE = $(addsuffix .d2, $(basename $(wildcard 
$(DEPS))))
 DEPS_RM = $(DEPS) $(DEPS_INCLUDE)
 
 %.d2: %.d
-       sed "s! $$PWD/! !" $^ >$@.tmp && mv -f $@.tmp $@
+       sed "s!\(^\| \)$$PWD/! !" $^ >$@.tmp && mv -f $@.tmp $@
 
 include $(XEN_ROOT)/config/$(XEN_OS).mk
 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.