mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
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:
parent
d33817a7eb
commit
bf4c414689
2 changed files with 16 additions and 1 deletions
|
@ -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 '_' */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue