|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
#
|
|
|
# Filename: package/.../gcc/ada-shared.patch
|
|
|
# Copyright (C) 2015 The OpenSDE Project
|
|
|
#
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
#
|
|
|
# This patch file is dual-licensed. It is available under the license the
|
|
|
# patched project is licensed under, as long as it is an OpenSource license
|
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
|
|
# of the GNU General Public License as published by the Free Software
|
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
|
# version.
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
Index: b/gcc/ada/link.c
|
|
|
===================================================================
|
|
|
--- a/gcc/ada/link.c
|
|
|
+++ b/gcc/ada/link.c
|
|
|
@@ -105,9 +105,9 @@
|
|
|
|
|
|
#elif defined (__FreeBSD__)
|
|
|
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";
|
|
|
@@ -127,9 +127,9 @@
|
|
|
|
|
|
#elif defined (linux) || defined(__GLIBC__)
|
|
|
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";
|