use FSEPX to create filename
[fw/sdcc] / as / mcs51 / lklibr.c
index d0d6c23e124a2939a62f9901c06cc09800c426a5..204449534c0b63a929199200628aa05022c8e777 100644 (file)
@@ -417,7 +417,7 @@ int SdccLib(char * PathLib, FILE * libfp, char * DirLib, char * SymName)
                                                /*As in the original library format, it is assumed that the .rel
                                                files reside in the same directory as the lib files.*/
                                                strcat(DirLib, ModName);
-                                               strcat(DirLib, ".rel"); /*FSEPX???*/
+                                       sprintf(&DirLib[strlen(DirLib)], "%crel", FSEPX);
 
                                                /*If this module has been loaded already don't load it again.*/
                                                lbf = lbfhead;