From 54466efc005eb44480831b12863399749957d651 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 29 Nov 2000 19:02:14 -0500 Subject: [PATCH] [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... --- bin/ltconfig | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/bin/ltconfig b/bin/ltconfig index c14d83c169..3ddeed11fb 100755 --- a/bin/ltconfig +++ b/bin/ltconfig @@ -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`