diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2005-07-08 02:11:33 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2005-07-08 02:11:33 (GMT) |
commit | 078a6a45ba863385dad21a5e9ae78adf4531e5ea (patch) | |
tree | 74ab49a40dbac329b23a3c5813276e44a9925d22 | |
parent | 0bc8c7c69b80efc9945d0af5d8c24a8156bdbec0 (diff) | |
download | hdf5-078a6a45ba863385dad21a5e9ae78adf4531e5ea.zip hdf5-078a6a45ba863385dad21a5e9ae78adf4531e5ea.tar.gz hdf5-078a6a45ba863385dad21a5e9ae78adf4531e5ea.tar.bz2 |
[svn-r11051] Purpose: Maintenance
Description: -xopnemp=stabs linking flag is needed on Solaris 2.9
in order to build Fortran library.
Solution: Added the flag to LDFLAGS if system version is 5.9
I don't really like the fix since this flag is now always added
for 5.9 systems even if Fortran is not enabled. If someone has
a better solution, please let me know :-)
Platforms tested: shanti, sol
Misc. update:
-rw-r--r-- | config/solaris2.x | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/solaris2.x b/config/solaris2.x index 0e596ad..8a09aef 100644 --- a/config/solaris2.x +++ b/config/solaris2.x @@ -25,6 +25,13 @@ if test "X-" = "X-$cc_flags_set"; then PROFILE_CFLAGS=-xpg PROFILE_CPPFLAGS= cc_flags_set=yes +# Special linking flag is needed to build with Fortran on Solaris 5.9 + system_version="`uname -r`" + case "$system_version" in + 5.9*) + LDFLAGS="$LDFLAGS -xopenmp=stubs" + ;; + esac # Turn off optimization flag for SUNpro compiler versions 4.x which # have an optimization bug. Version 5.0 works. |