summaryrefslogtreecommitdiffstats
path: root/src/H5make_libsettings.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2010-03-30 18:54:15 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2010-03-30 18:54:15 (GMT)
commit5d1838beab77a93f29ac0278ed43f9d1aec505b7 (patch)
tree76fcb069e95a83a4956ce2be399f4dd9fe7627c1 /src/H5make_libsettings.c
parentc49b97ff38ed25d5bb85225dc16059b0a8a5b774 (diff)
downloadhdf5-5d1838beab77a93f29ac0278ed43f9d1aec505b7.zip
hdf5-5d1838beab77a93f29ac0278ed43f9d1aec505b7.tar.gz
hdf5-5d1838beab77a93f29ac0278ed43f9d1aec505b7.tar.bz2
[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.
Diffstat (limited to 'src/H5make_libsettings.c')
-rw-r--r--src/H5make_libsettings.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5make_libsettings.c b/src/H5make_libsettings.c
index 771c510..f91e61e 100644
--- a/src/H5make_libsettings.c
+++ b/src/H5make_libsettings.c
@@ -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() */