OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0018-ada-fix-shared-linking.patch
  5. # Copyright (C) 2020 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From b675e0383262d6d702f5b732e4459d3e2c2a4891 Mon Sep 17 00:00:00 2001
  17. From: Ariadne Conill <ariadne@dereferenced.org>
  18. Date: Fri, 21 Aug 2020 06:59:16 +0000
  19. Subject: [PATCH 18/30] ada: fix shared linking
  20. ---
  21. gcc/ada/link.c | 12 ++++++------
  22. 1 file changed, 6 insertions(+), 6 deletions(-)
  23. diff --git a/gcc/ada/link.c b/gcc/ada/link.c
  24. index 02c413a412f..f0e52a87d6e 100644
  25. --- a/gcc/ada/link.c
  26. +++ b/gcc/ada/link.c
  27. @@ -107,9 +107,9 @@ const char *__gnat_default_libgcc_subdir = "lib";
  28. || defined (__NetBSD__) || defined (__OpenBSD__) \
  29. || defined (__QNX__)
  30. const char *__gnat_object_file_option = "-Wl,@";
  31. -const char *__gnat_run_path_option = "-Wl,-rpath,";
  32. -char __gnat_shared_libgnat_default = STATIC;
  33. -char __gnat_shared_libgcc_default = STATIC;
  34. +const char *__gnat_run_path_option = "";
  35. +char __gnat_shared_libgnat_default = SHARED;
  36. +char __gnat_shared_libgcc_default = SHARED;
  37. int __gnat_link_max = 8192;
  38. unsigned char __gnat_objlist_file_supported = 1;
  39. const char *__gnat_object_library_extension = ".a";
  40. @@ -129,9 +129,9 @@ const char *__gnat_default_libgcc_subdir = "lib";
  41. #elif defined (__linux__) || defined (__GLIBC__)
  42. const char *__gnat_object_file_option = "-Wl,@";
  43. -const char *__gnat_run_path_option = "-Wl,-rpath,";
  44. -char __gnat_shared_libgnat_default = STATIC;
  45. -char __gnat_shared_libgcc_default = STATIC;
  46. +const char *__gnat_run_path_option = "";
  47. +char __gnat_shared_libgnat_default = SHARED;
  48. +char __gnat_shared_libgcc_default = SHARED;
  49. int __gnat_link_max = 8192;
  50. unsigned char __gnat_objlist_file_supported = 1;
  51. const char *__gnat_object_library_extension = ".a";
  52. --
  53. 2.27.0