diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-30 00:36:21 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-30 00:36:37 +0100 |
commit | 8fd7f3d9fa48a8aad68ff6f117fc33afb8aa5c82 (patch) | |
tree | c0ae07a5e0ee54606255efbc737658216d3cb4d0 /Ports | |
parent | 57f55f297b6f30755c1441169d3d05cfec37043b (diff) | |
download | serenity-8fd7f3d9fa48a8aad68ff6f117fc33afb8aa5c82.zip |
Ports: Update GCC patch to match our toolchain
Diffstat (limited to 'Ports')
-rw-r--r-- | Ports/gcc/patches/gcc.patch | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Ports/gcc/patches/gcc.patch b/Ports/gcc/patches/gcc.patch index d460f533ab..cfe7a4a360 100644 --- a/Ports/gcc/patches/gcc.patch +++ b/Ports/gcc/patches/gcc.patch @@ -137,10 +137,10 @@ index 000000000..24b29c3da +#define PTRDIFF_TYPE "long int" diff --git a/gcc/config/serenity.h b/gcc/config/serenity.h new file mode 100644 -index 000000000..60ebec583 +index 000000000..925c88dd6 --- /dev/null +++ b/gcc/config/serenity.h -@@ -0,0 +1,28 @@ +@@ -0,0 +1,31 @@ +/* Useful if you wish to make target-specific GCC changes. */ +#undef TARGET_SERENITY +#define TARGET_SERENITY 1 @@ -158,6 +158,9 @@ index 000000000..60ebec583 +/* Files that are linked after user code. */ +#undef ENDFILE_SPEC +#define ENDFILE_SPEC "crtend.o%s crtn.o%s" ++ ++#undef LINK_SPEC ++#define LINK_SPEC "%{shared:-shared} %{static:-static} %{!shared: %{!static: %{rdynamic:-export-dynamic}}}" + +/* Additional predefined macros. */ +#undef TARGET_OS_CPP_BUILTINS |