summaryrefslogtreecommitdiff
path: root/sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-22 17:59:27 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-22 17:59:27 +0100
commit3b777abeb91e427fb3bf1a2c9bee8aa6e3eed763 (patch)
tree0631bf4a785376854b32baedb515c23ad022d8b9 /sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch
parent04ddf382243b633cb85e1d9ed444b4e56462463a (diff)
sys-devel/gcc : revision bump
Diffstat (limited to 'sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch')
-rw-r--r--sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch b/sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch
new file mode 100644
index 00000000..e0e5a3ab
--- /dev/null
+++ b/sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch
@@ -0,0 +1,22 @@
+Revert of https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=59e4c98173a79fcaa2c33253261409f38856c384
+for now to fix cross fixincludes builds.
+
+https://gcc.gnu.org/PR115416
+https://bugs.gentoo.org/905118
+https://bugs.gentoo.org/925204
+https://bugs.gentoo.org/926059
+--- a/gcc/Makefile.in
++++ b/gcc/Makefile.in
+@@ -532,11 +532,7 @@ LINKER_PLUGIN_API_H = $(srcdir)/../include/plugin-api.h
+ # Default native SYSTEM_HEADER_DIR, to be overridden by targets.
+ NATIVE_SYSTEM_HEADER_DIR = @NATIVE_SYSTEM_HEADER_DIR@
+ # Default cross SYSTEM_HEADER_DIR, to be overridden by targets.
+-ifeq (@includedir@,$(prefix)/include)
+- CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@
+-else
+- CROSS_SYSTEM_HEADER_DIR = @includedir@
+-endif
++CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@
+
+ # autoconf sets SYSTEM_HEADER_DIR to one of the above.
+ # Purge it of unnecessary internal relative paths