fix wrong logic for old compiler detection resulting in missing dependencies

This commit is contained in:
2018-12-11 14:35:01 +01:00
parent a720d1e0eb
commit c6ea588dbf
+5 -4
View File
@@ -704,13 +704,14 @@ endif # !USE_EXACT_VERSION
# For newer compilers they are ok and ignore files in system directories.
# For old vxWorks gcc those rules ignore #include <...>,
# which may be falsey used for non-system headers.
ifdef HDEPENDS
CPPFLAGS += -MMD
endif
ifneq (,$(filter T2-%,$(T_A)))
ifeq ($(OS_CLASS)-$(firstword $(basename $(VX_GNU_VERSION)) 2),vxWorks-2)
HDEPENDS_METHOD = COMP
HDEPENDS_COMPFLAGS = -c
CPPFLAGS += -MD
else
ifdef HDEPENDS
CPPFLAGS += -MMD
endif
endif
-include *.d