From 31d432e47fac88134d8b2e9ebefbd25c5293f6fd Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 12 Jul 2000 04:17:40 +0000 Subject: [PATCH] * collect2.c (main): Recognize .lo as object files. From-SVN: r34978 --- gcc/ChangeLog | 4 ++++ gcc/collect2.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d9b922..ec4747d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-07-11 Marc Espie + + * collect2.c (main): Recognize .lo as object files. + 2000-07-11 J. David Anglin * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems diff --git a/gcc/collect2.c b/gcc/collect2.c index d890584..d68ac62 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -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. */ -- 2.7.4