2022-01-06 15:11:38 +00:00
|
|
|
From faa76d0bb79553be27fe82b1e85194e7a5284885 Mon Sep 17 00:00:00 2001
|
2020-08-21 10:18:02 +00:00
|
|
|
From: Ariadne Conill <ariadne@dereferenced.org>
|
|
|
|
Date: Fri, 21 Aug 2020 06:59:16 +0000
|
2021-04-25 11:08:48 +00:00
|
|
|
Subject: [PATCH] ada: fix shared linking
|
2020-08-21 10:18:02 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
gcc/ada/link.c | 12 ++++++------
|
|
|
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/gcc/ada/link.c b/gcc/ada/link.c
|
2021-11-25 09:09:10 +00:00
|
|
|
index 5cd5ef64f56..1c611a82cab 100644
|
2018-12-12 17:14:55 +00:00
|
|
|
--- a/gcc/ada/link.c
|
|
|
|
+++ b/gcc/ada/link.c
|
2020-08-21 10:18:02 +00:00
|
|
|
@@ -107,9 +107,9 @@ const char *__gnat_default_libgcc_subdir = "lib";
|
|
|
|
|| defined (__NetBSD__) || defined (__OpenBSD__) \
|
|
|
|
|| defined (__QNX__)
|
2018-12-12 17:14:55 +00:00
|
|
|
const char *__gnat_object_file_option = "-Wl,@";
|
|
|
|
-const char *__gnat_run_path_option = "-Wl,-rpath,";
|
|
|
|
-char __gnat_shared_libgnat_default = STATIC;
|
|
|
|
-char __gnat_shared_libgcc_default = STATIC;
|
|
|
|
+const char *__gnat_run_path_option = "";
|
|
|
|
+char __gnat_shared_libgnat_default = SHARED;
|
|
|
|
+char __gnat_shared_libgcc_default = SHARED;
|
|
|
|
int __gnat_link_max = 8192;
|
|
|
|
unsigned char __gnat_objlist_file_supported = 1;
|
|
|
|
const char *__gnat_object_library_extension = ".a";
|
2020-08-21 10:18:02 +00:00
|
|
|
@@ -129,9 +129,9 @@ const char *__gnat_default_libgcc_subdir = "lib";
|
2018-12-12 17:14:55 +00:00
|
|
|
|
2020-08-21 10:18:02 +00:00
|
|
|
#elif defined (__linux__) || defined (__GLIBC__)
|
2018-12-12 17:14:55 +00:00
|
|
|
const char *__gnat_object_file_option = "-Wl,@";
|
|
|
|
-const char *__gnat_run_path_option = "-Wl,-rpath,";
|
|
|
|
-char __gnat_shared_libgnat_default = STATIC;
|
|
|
|
-char __gnat_shared_libgcc_default = STATIC;
|
|
|
|
+const char *__gnat_run_path_option = "";
|
|
|
|
+char __gnat_shared_libgnat_default = SHARED;
|
|
|
|
+char __gnat_shared_libgcc_default = SHARED;
|
|
|
|
int __gnat_link_max = 8192;
|
|
|
|
unsigned char __gnat_objlist_file_supported = 1;
|
|
|
|
const char *__gnat_object_library_extension = ".a";
|
2020-08-21 10:18:02 +00:00
|
|
|
--
|
2022-01-06 15:11:38 +00:00
|
|
|
2.34.1
|
2020-08-21 10:18:02 +00:00
|
|
|
|