summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc/0001-Fix-install-path-of-linux64.h.patch
blob: 9201538f0ed746044e9bbe7eeeafe1f1c43d454a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 58211c7ceb0510b2a11a7f1da3c7fa968c658749 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Wed, 22 Dec 2021 12:49:25 +0100
Subject: [PATCH] Fix install path of linux64.h

We add linux64.h to tm includes[1] as a relative path to B. This patch
adapts the install path of linux64.h to match the include in tm.h.

[1] 0016-Use-the-multilib-config-files-from-B-instead-of-usin.patch

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>

Upstream-Status: Inappropriate [configuration]
---
 gcc/Makefile.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 9b17d120a..d175ec4e3 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3693,6 +3693,8 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype
 	  "$(srcdir)"/config/* | "$(srcdir)"/common/config/* \
 	  | "$(srcdir)"/c-family/* | "$(srcdir)"/*.def ) \
 	    base=`echo "$$path" | sed -e "s|$$srcdirstrip/||"`;; \
+	  ./linux64.h ) \
+	    base=`dirname $$path`;;\
 	  *) base=`basename $$path` ;; \
 	  esac; \
 	  dest=$(plugin_includedir)/$$base; \
-- 
2.25.1