libc

Peter Naulls peter at chocky.org
Sun Aug 4 06:03:22 PDT 2002


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

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;
     }


-- 
------------------------------------------------------------------------
 Peter Naulls - peter at chocky.org
 Homepage                     -  http://www.chocky.org/
 RISC OS C Programming        -  http://www.riscos.info/
 Unix Programs on RISC OS     -  http://www.chocky.org/unix/
------------------------------------------------------------------------



More information about the gcc mailing list