From f0ebcbe77fbd872b1105102c911dbec83ad78592 Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Mon, 19 Nov 2018 23:07:09 +0100 Subject: [PATCH] Use $(MIQ_OBJDIR) in generated dependencies This is to avoid a problem where MinGW GCC sometimes writes the dependency as D:/path/to/obj.o, which confuses make. --- config.gnu.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.gnu.mk b/config.gnu.mk index 7cd9677..777c273 100644 --- a/config.gnu.mk +++ b/config.gnu.mk @@ -66,7 +66,7 @@ GEN_NEWS= grep '^$(shell git tag -n1 `git describe`)' $@ || \ CFLAGS_STD= $(CC_STD:%=-std=%) $(CFLAGS_PIC) CXXFLAGS_STD= $(CXX_STD:%=-std=%) $(CFLAGS_PIC) -CFLAGS_DEPENDENCIES= -MD -MP -MF $(@).d -MT $@ +CFLAGS_DEPENDENCIES= -MD -MP -MF "$(@).d" -MT "$(@:$(MIQ_OBJDIR)%=\$$(MIQ_OBJDIR)%)" CFLAGS_TARGET_debug= -g -Wall -fno-inline CFLAGS_TARGET_opt= -g -O3 -Wall