diff options
Diffstat (limited to 'lang/gnat/files/patch-ab')
-rw-r--r-- | lang/gnat/files/patch-ab | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lang/gnat/files/patch-ab b/lang/gnat/files/patch-ab new file mode 100644 index 000000000000..baf5ebdeec18 --- /dev/null +++ b/lang/gnat/files/patch-ab @@ -0,0 +1,36 @@ +diff -c orig/gcc.c gcc/gcc.c +*** orig/gcc.c Thu Apr 3 08:37:06 1997 +--- gcc-2.7.2.1/gcc.c Fri Apr 4 23:21:00 1997 +*************** +*** 1354,1362 **** + #undef MD_STARTFILE_PREFIX_1 + #endif + +! #ifndef STANDARD_EXEC_PREFIX +! #define STANDARD_EXEC_PREFIX "/usr/local/lib/gcc-lib/" +! #endif /* !defined STANDARD_EXEC_PREFIX */ + + static char *standard_exec_prefix = STANDARD_EXEC_PREFIX; + static char *standard_exec_prefix_1 = "/usr/lib/gcc/"; +--- 1354,1360 ---- + #undef MD_STARTFILE_PREFIX_1 + #endif + +! #define STANDARD_EXEC_PREFIX FREEBSD_PREFIX "/libexec/" + + static char *standard_exec_prefix = STANDARD_EXEC_PREFIX; + static char *standard_exec_prefix_1 = "/usr/lib/gcc/"; +*************** +*** 2708,2715 **** +--- 2706,2716 ---- + /* Use 2 as fourth arg meaning try just the machine as a suffix, + as well as trying the machine and the version. */ + #ifdef FREEBSD_NATIVE ++ add_prefix (&exec_prefixes, FREEBSD_PREFIX "/libexec/ada/", 0, 0, NULL_PTR); ++ add_prefix (&exec_prefixes, FREEBSD_PREFIX "/libexec/", 0, 0, NULL_PTR); + add_prefix (&exec_prefixes, "/usr/libexec/", 0, 0, NULL_PTR); + add_prefix (&exec_prefixes, "/usr/bin/", 0, 0, NULL_PTR); ++ add_prefix (&startfile_prefixes, FREEBSD_PREFIX "/lib/", 0, 0, NULL_PTR); + add_prefix (&startfile_prefixes, "/usr/libdata/gcc/", 0, 0, NULL_PTR); + #else /* not FREEBSD_NATIVE */ + #ifndef OS2 |