ICU-1913 iSeries cannot have '-' in the .o object names, and other

platforms seem to be okay with the changing '-' -> '_'

X-SVN-Rev: 8740
This commit is contained in:
George Rhoten 2002-05-30 23:46:30 +00:00
parent d33817a7eb
commit bf4c414689
2 changed files with 16 additions and 1 deletions

View file

@ -375,7 +375,14 @@ getOutFilename(const char *inFilename, const char *destdir, char *outFilename, c
} else {
/* copy basename */
while(inFilename<suffix) {
*outFilename++=*entryName++=*inFilename++;
if(*inFilename=='-') {
/* iSeries cannot have '-' in the .o objects. */
*outFilename++=*entryName++='_';
inFilename++;
}
else {
*outFilename++=*entryName++=*inFilename++;
}
}
/* replace '.' by '_' */

View file

@ -32,6 +32,7 @@ static void
writeObjRules(UPKGOptions *o, FileStream *makefile, CharList **objects)
{
const char *p, *baseName;
char *tmpPtr;
char tmp[1024];
char stanza[1024];
char cfile[1024];
@ -55,6 +56,13 @@ writeObjRules(UPKGOptions *o, FileStream *makefile, CharList **objects)
uprv_strcat(tmp, p);
uprv_strcat(tmp, OBJ_SUFFIX);
/* iSeries cannot have '-' in the .o objects. */
for( tmpPtr = tmp; *tmpPtr; tmpPtr++ ) {
if ( *tmpPtr == '-' ) {
*tmpPtr = '_';
}
}
*objects = pkg_appendToList(*objects, &oTail, uprv_strdup(tmp));
/* write source list */