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

[Xen-changelog] [xen stable-4.13] build: fix dependency file generation with ENFORCE_UNIQUE_SYMBOLS=y



commit 95d43cdf6e81bea6fcc8fcad9f0b67d48913236a
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Mar 5 10:54:33 2020 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Mar 5 10:54:33 2020 +0100

    build: fix dependency file generation with ENFORCE_UNIQUE_SYMBOLS=y
    
    The recorded file, unless overridden by -MQ (or -MT) is that specified
    by -o, which doesn't produce correct dependencies and hence will cause
    failure to re-build when included files change.
    
    Fixes: 81ecb38b83b0 ("build: provide option to disambiguate symbol names")
    Reported-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Tested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    master commit: 17a6c03701bf65c0b4e8b5ed5a3970cd0248c47f
    master date: 2020-01-17 17:38:19 +0100
---
 xen/Rules.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/Rules.mk b/xen/Rules.mk
index b0bc7601c1..9d0e6acc2e 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -202,7 +202,7 @@ SRCPATH := $(patsubst $(BASEDIR)/%,%,$(CURDIR))
 
 %.o: %.c Makefile
 ifeq ($(CONFIG_ENFORCE_UNIQUE_SYMBOLS),y)
-       $(CC) $(CFLAGS) -c $< -o $(@D)/.$(@F).tmp
+       $(CC) $(CFLAGS) -c $< -o $(@D)/.$(@F).tmp -MQ $@
 ifeq ($(clang),y)
        $(OBJCOPY) --redefine-sym $<=$(SRCPATH)/$< $(@D)/.$(@F).tmp $@
 else
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.13

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

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