1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Read specs from /usr/libdata/gcc/specs if it exists.

This commit is contained in:
David E. O'Brien 2002-06-06 00:49:58 +00:00
parent 6438c894da
commit 74d3af89ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97902

View File

@ -5989,11 +5989,11 @@ main (argc, argv)
/* 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)
specs_file = (char *) alloca (strlen (FBSD_DATA_PREFIX)
+ strlen (just_machine_suffix)
+ sizeof ("specs"));
strcpy (specs_file, standard_exec_prefix);
strcpy (specs_file, FBSD_DATA_PREFIX);
strcat (specs_file, just_machine_suffix);
strcat (specs_file, "specs");
if (access (specs_file, R_OK) == 0)