summaryrefslogtreecommitdiff
path: root/Ports/gcc
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-01-04 16:39:10 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-04 17:40:09 +0000
commit84c6d6649e3e0c38d75da87b13c6c38081b7cc70 (patch)
tree47950b4a1c01c7a1d1de7cb6c8c9e60f3c5a2e2b /Ports/gcc
parent0eb37185565e2328128b0f9905271a400829abb9 (diff)
downloadserenity-84c6d6649e3e0c38d75da87b13c6c38081b7cc70.zip
Toolchain: Fix building the aarch64 toolchain
The `aarch64/t-aarch64` makefile fragment needs to be included for the aarch64-specific parts of GCC to be built. Before 738e52da5, this was done implicitly, but now it is not. This caused the following error when building the toolchain: "aarch64-builtins.o: No such file or directory".
Diffstat (limited to 'Ports/gcc')
-rw-r--r--Ports/gcc/patches/gcc.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/Ports/gcc/patches/gcc.patch b/Ports/gcc/patches/gcc.patch
index f470d96006..cc01364978 100644
--- a/Ports/gcc/patches/gcc.patch
+++ b/Ports/gcc/patches/gcc.patch
@@ -46,7 +46,7 @@ index a75b44ee4..6fab7c3ca 100644
+
; This comment is to ensure we retain the blank line above.
diff --git a/gcc/config.gcc b/gcc/config.gcc
-index 357b0bed0..151d93312 100644
+index 357b0bed0..8e96b74e5 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -686,6 +686,13 @@ x86_cpus="generic intel"
@@ -63,7 +63,7 @@ index 357b0bed0..151d93312 100644
*-*-darwin*)
tmake_file="t-darwin "
tm_file="${tm_file} darwin.h"
-@@ -1084,6 +1091,18 @@ case ${target} in
+@@ -1084,6 +1091,19 @@ case ${target} in
esac
case ${target} in
@@ -78,6 +78,7 @@ index 357b0bed0..151d93312 100644
+ ;;
+aarch64-*-serenity*)
+ tm_file="${tm_file} dbxelf.h elfos.h aarch64/aarch64-elf.h glibc-stdint.h serenity.h"
++ tmake_file="${tmake_file} aarch64/t-aarch64"
+ ;;
aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*)
tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h"