summaryrefslogtreecommitdiff
path: root/Ports/gcc
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2020-12-11 15:44:08 +0200
committerAndreas Kling <kling@serenityos.org>2020-12-14 23:05:53 +0100
commit758fc8c063b185a0d296e2f38c53e5d059df16fb (patch)
tree7e10a56a3095392757baa2c36bdfe4480af6242c /Ports/gcc
parent69b0fdd84a165b783235de56799e19c0c911192b (diff)
downloadserenity-758fc8c063b185a0d296e2f38c53e5d059df16fb.zip
Toolchain: Fix usage of libgcc_s & build PIE executables by default
We can now build the porst with the shared libraries toolchain.
Diffstat (limited to 'Ports/gcc')
-rw-r--r--Ports/gcc/patches/gcc.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ports/gcc/patches/gcc.patch b/Ports/gcc/patches/gcc.patch
index 8ef1458f10..f06a160904 100644
--- a/Ports/gcc/patches/gcc.patch
+++ b/Ports/gcc/patches/gcc.patch
@@ -128,7 +128,7 @@ index 000000000..2692b8e57
+#define ENDFILE_SPEC "%{shared|pie:crtendS.o%s; :crtend.o%s} crtn.o%s"
+
+#undef LINK_SPEC
-+#define LINK_SPEC "%{shared:-shared} %{static:-static} %{!shared: %{!static: %{rdynamic:-export-dynamic} -dynamic-linker /usr/lib/Loader.so}}"
++#define LINK_SPEC "%{shared:-shared} %{static:-static} %{!static: %{rdynamic:-export-dynamic} %{!fbuilding-libgcc:-lgcc_s -dynamic-linker /usr/lib/Loader.so}}"
+
+/* Additional predefined macros. */
+#undef TARGET_OS_CPP_BUILTINS