[ccache] [PATCH 1/2] dev.mk.in: fix file name too long error
Robert Yang
liezhi.yang at windriver.com
Tue Jan 22 09:04:00 UTC 2019
The all_cppflags changes path to filename which causes file name too long
error when the path is longer than NAME_MAX (usually 255). Strip srcdir
to fix the problem.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
dev.mk.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev.mk.in b/dev.mk.in
index cf6e17c..be0d501 100644
--- a/dev.mk.in
+++ b/dev.mk.in
@@ -1,7 +1,7 @@
# GNU make syntax reigns in this file.
all_cflags += -Werror @more_warnings@
-all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$<)).d
+all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$(subst $(srcdir)/,,$<))).d
A2X = a2x
ASCIIDOC = asciidoc
--
2.7.4
More information about the ccache
mailing list