Linker complaints if linked modules have conflicting options.
[fw/sdcc] / as / mcs51 / lklibr.c
index d7d9cb249049701b180007462fd179ccc4d31712..8ca450486b0fa8d4d2bc36f259e2e10fd4ac72e7 100644 (file)
@@ -128,16 +128,16 @@ addlib()
 
        if (lbphead == NULL)
     {
-               foundcount+=addfile(NULL,ip);
+               foundcount=addfile(NULL, ip);
        }
     else
     {
            for (lbph=lbphead; lbph; lbph=lbph->next)
         {
-                   foundcount+=addfile(lbph->path,ip);
+                   foundcount+=addfile(lbph->path, ip);
            }
     }
-    if(foundcount==0)
+    if(foundcount == 0)
     {
         printf("?ASlink-Warning-Couldn't find library '%s'\n", ip);
     }
@@ -238,7 +238,7 @@ int addfile(char * path, char * libfil)
 
     if(path==NULL)
     {
-        /*'path' can not be null since it is needed to find the '.o' files associated with
+        /*'path' can not be null since it is needed to find the '.rel' files associated with
         the library.  So, get 'path' from 'str' and then chop it off and recreate 'libfil'.
         That way putting 'path' and 'libfil' together will result into the original filepath
         as contained in 'str'.*/