blob: 16a6e9d80f52b1cdc0167fa71462ed33a147f1a9 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 7dab2995ed8eeccd7b0acd79668bc28f3a2427d5 Mon Sep 17 00:00:00 2001
Patrick Williamsf1e5d692016-03-30 15:21:19 -05002From: Robert Yang <liezhi.yang@windriver.com>
3Date: Wed, 16 Sep 2015 19:45:40 -0700
Brad Bishop19323692019-04-05 15:28:33 -04004Subject: [PATCH] dev.mk.in: fix file name too long error
Patrick Williamsf1e5d692016-03-30 15:21:19 -05005
Brad Bishop19323692019-04-05 15:28:33 -04006The all_cppflags changes path to filename which causes file name too long
Patrick Williamsf1e5d692016-03-30 15:21:19 -05007error when the path is longer than NAME_MAX (usually 255). Strip srcdir
8to fix the problem.
9
Brad Bishop19323692019-04-05 15:28:33 -040010Upstream-Status: Backport [https://github.com/ccache/ccache/commit/4d86e884d07ba1853a0c70507cc4d04107f57c29]
Patrick Williamsf1e5d692016-03-30 15:21:19 -050011
12Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013
Patrick Williamsf1e5d692016-03-30 15:21:19 -050014---
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015 dev.mk.in | 2 +-
Patrick Williamsf1e5d692016-03-30 15:21:19 -050016 1 file changed, 1 insertion(+), 1 deletion(-)
17
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018diff --git a/dev.mk.in b/dev.mk.in
19index 91b0a57..583ade0 100644
20--- a/dev.mk.in
21+++ b/dev.mk.in
Patrick Williamsf1e5d692016-03-30 15:21:19 -050022@@ -1,7 +1,7 @@
23 # GNU make syntax reigns in this file.
24
Brad Bishop19323692019-04-05 15:28:33 -040025 all_cflags += -Werror @more_warnings@
Patrick Williamsf1e5d692016-03-30 15:21:19 -050026-all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$<)).d
27+all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$(subst $(srcdir)/,,$<))).d
28
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029 A2X = a2x
Patrick Williamsf1e5d692016-03-30 15:21:19 -050030 ASCIIDOC = asciidoc