]> gcc.gnu.org Git - gcc.git/commitdiff
Check for and read ${libdir}/gcc-lib/specs to override the default specs.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 21 Jun 1997 10:29:14 +0000 (06:29 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 21 Jun 1997 10:29:14 +0000 (06:29 -0400)
From-SVN: r14278

gcc/gcc.c

index 8e50517f1233853e99a37a7b110da0a52bbbaa14..33b220a22c0382ac8b48026cd732965cbb464ca1 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4386,6 +4386,18 @@ main (argc, argv)
   else
     init_spec ();
 
+  /* We need to check standard_exec_prefix/just_machine_suffix/specs
+     for any override of as, ld and libraries. */
+  specs_file = (char *) alloca (strlen (standard_exec_prefix)
+                               + strlen (just_machine_suffix)
+                               + sizeof ("specs"));
+
+  strcpy (specs_file, standard_exec_prefix);
+  strcat (specs_file, just_machine_suffix);
+  strcat (specs_file, "specs");
+  if (access (specs_file, R_OK) == 0)
+    read_specs (specs_file, TRUE);
   /* Process any user specified specs in the order given on the command
      line.  */
   for (uptr = user_specs_head; uptr; uptr = uptr->next)
This page took 0.075333 seconds and 5 git commands to generate.