summaryrefslogtreecommitdiffstats
path: root/config/solaris2.x
diff options
context:
space:
mode:
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