[svn-r3035] Purpose:

Major Hack (tm)

	NOTE! When upgrading ltconfig in the future, this may have to be
	re-fixed!!!
Description:
	Pacific Blue didn't like the ``-b nolibpath -b libpath:...''
	flags libtool was handing it. It looks as if those flags would
	make mpicc forget where some of the libraries it needed were.
Solution:
	Test the hostname to determine if we're at pacific.llnl.gov. If
	so, then we don't want those flags.
Platforms tested:
	Pacific Blue...
This commit is contained in:
Bill Wendling 2000-11-29 19:02:14 -05:00
parent 49e8b9fab8
commit 54466efc00

View File

@ -1277,7 +1277,21 @@ else
;;
aix4*)
hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
# This is a Major Hack(tm) to get HDF5 to compile on Pacific Blue.
# The ``-b nolibpath -b ...'' flags were messing with the mpicc
# compiler's already defined library paths and it wasn't able to find
# the libraries it needed to run....DOH!
hname="`hostname`"
case "$hname" in
*pacific.llnl.gov*)
hardcode_libdir_flag_spec=' '
;;
*)
hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
;;
esac
hardcode_libdir_separator=':'
if test "$with_gcc" = yes; then
collect2name=`${CC} -print-prog-name=collect2`