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, 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.