summaryrefslogtreecommitdiffstats
path: root/bin/ltconfig
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-11-30 00:02:14 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-11-30 00:02:14 (GMT)
commit54466efc005eb44480831b12863399749957d651 (patch)
treea1f89066f53f3825f64046ada2c1d8083e4e6488 /bin/ltconfig
parent49e8b9fab84a2286ffe11269563ee27fd6442bfe (diff)
downloadhdf5-54466efc005eb44480831b12863399749957d651.zip
hdf5-54466efc005eb44480831b12863399749957d651.tar.gz
hdf5-54466efc005eb44480831b12863399749957d651.tar.bz2
[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...
Diffstat (limited to 'bin/ltconfig')
-rwxr-xr-xbin/ltconfig16
1 files changed, 15 insertions, 1 deletions
diff --git a/bin/ltconfig b/bin/ltconfig
index c14d83c..3ddeed1 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`