libc

Nick Burrett nick at dsvr.net
Mon Aug 5 01:57:08 PDT 2002


Peter Naulls wrote:
> Some makefiles specify -lc, which doesn't really do anything useful for
> RISC OS.   This ignores at, as we already do for -lm

Thanks.  Committed.   In the past I had considered renaming UnixLib to libc.

> Index: riscos-aof/ld/ld.c
> ===================================================================
> RCS file: /usr/local/cvsroot/gccsdk/riscos-aof/ld/ld.c,v
> retrieving revision 1.7.2.11
> diff -u -r1.7.2.11 ld.c
> --- riscos-aof/ld/ld.c  10 Jun 2002 10:06:04 -0000      1.7.2.11
> +++ riscos-aof/ld/ld.c  4 Aug 2002 13:03:33 -0000
> @@ -1554,10 +1555,10 @@
>  {
>    llist *list = libraries;
>  
> -  if (strcmp (library, "m") == 0)
> +  if (strcmp (library, "m") == 0 || strcmp (library, "c") == 0)
>      {
>        if (tlink_verbose >= 2)
> -       printf ("Library libm was specified. Ignoring it\n");
> +       printf ("Library lib%s was specified. Ignoring it\n", library);
>        return;
>      }
> 
> 


-- 
Nick Burrett
Development Manager, Designer Servers Ltd.   http://www.dsvr.co.uk




More information about the gcc mailing list