[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.
This commit is contained in:
Albert Cheng 2005-07-07 23:55:17 -05:00
parent 078a6a45ba
commit 25c0edc3b1

View File

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