* collect2.c (main): Recognize .lo as object files.

From-SVN: r34978
This commit is contained in:
Marc Espie 2000-07-12 04:17:40 +00:00 committed by Jeff Law
parent 4c1331d644
commit 31d432e47f
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2000-07-11 Marc Espie <espie@openbsd.org>
* collect2.c (main): Recognize .lo as object files.
2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems

View file

@ -1222,7 +1222,7 @@ main (argc, argv)
}
else if ((p = rindex (arg, '.')) != (char *) 0
&& (strcmp (p, ".o") == 0 || strcmp (p, ".a") == 0
|| strcmp (p, ".so") == 0))
|| strcmp (p, ".so") == 0 || strcmp (p, ".lo") == 0))
{
if (first_file)
{
@ -1237,7 +1237,7 @@ main (argc, argv)
*ld2++ = arg;
}
}
if (p[1] == 'o')
if (p[1] == 'o' || p[1] == 'l')
*object++ = arg;
#ifdef COLLECT_EXPORT_LIST
/* libraries can be specified directly, i.e. without -l flag. */