summaryrefslogtreecommitdiffstats
path: root/config/solaris2.x
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-07-08 04:55:17 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-07-08 04:55:17 (GMT)
commit25c0edc3b1378665468fdec819cf34dc194695c9 (patch)
tree3308036d923ca6251900c6b07a23b0358129563e /config/solaris2.x
parent078a6a45ba863385dad21a5e9ae78adf4531e5ea (diff)
downloadhdf5-25c0edc3b1378665468fdec819cf34dc194695c9.zip
hdf5-25c0edc3b1378665468fdec819cf34dc194695c9.tar.gz
hdf5-25c0edc3b1378665468fdec819cf34dc194695c9.tar.bz2
[svn-r11052] Purpose:
improvement. Description: make the adding of -xopnemp=stabs linking flag only when enable-fortran is set. Platforms tested: Tested in shanti only.
Diffstat (limited to 'config/solaris2.x')
-rw-r--r--config/solaris2.x7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/solaris2.x b/config/solaris2.x
index 8a09aef..e05860d 100644
--- a/config/solaris2.x
+++ b/config/solaris2.x
@@ -29,8 +29,11 @@ if test "X-" = "X-$cc_flags_set"; then
system_version="`uname -r`"
case "$system_version" in
5.9*)
- LDFLAGS="$LDFLAGS -xopenmp=stubs"
- ;;
+ # Need the xopenmp flag to build the Fortran library
+ if test X-$enable_fortran = X-yes; then
+ LDFLAGS="$LDFLAGS -xopenmp=stubs"
+ fi
+ ;;
esac
# Turn off optimization flag for SUNpro compiler versions 4.x which