From 078a6a45ba863385dad21a5e9ae78adf4531e5ea Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Thu, 7 Jul 2005 21:11:33 -0500 Subject: [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: --- config/solaris2.x | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- cgit v0.12