[svn-r18469] bug fix:
recent changes to the embedded library generation code does not quite work for the AIX system. The strings command of AIX does not display the embedded library information be default. Solution: Changed the H5libhhdf5_setting[] to be an extern variable. Also removed the const qualifier so that strings can see the variable data. Tested: Blue-print (with embedded-libinfo enabled and disabled). Also tested in Jam.
This commit is contained in:
@@ -75,7 +75,8 @@ insert_libhdf5_settings(FILE *flibinfo)
|
||||
exit(1);
|
||||
}
|
||||
/* print variable definition and the string */
|
||||
fprintf(flibinfo, "static const char H5libhdf5_settings[]=\n");
|
||||
/* Do not use const else AIX strings does not show it. */
|
||||
fprintf(flibinfo, "char H5libhdf5_settings[]=\n");
|
||||
bol++;
|
||||
while (EOF != (inchar = getc(fsettings))){
|
||||
if (bol){
|
||||
@@ -108,7 +109,8 @@ insert_libhdf5_settings(FILE *flibinfo)
|
||||
}
|
||||
#else
|
||||
/* print variable definition and an empty string */
|
||||
fprintf(flibinfo, "static const char H5libhdf5_settings[]=\"\";\n");
|
||||
/* Do not use const else AIX strings does not show it. */
|
||||
fprintf(flibinfo, "char H5libhdf5_settings[]=\"\";\n");
|
||||
#endif
|
||||
} /* insert_libhdf5_settings() */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user