[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:
This commit is contained in:
Elena Pourmal 2005-07-07 21:11:33 -05:00
parent 0bc8c7c69b
commit 078a6a45ba

View File

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