summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-04-21 00:00:46 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-04-21 00:00:46 (GMT)
commitbca6f2738bb933b3163d5eb3638fbf7ced3c7d9c (patch)
tree032682d2ee070b960b9f892ba0cdf6acd6b70e35 /bin
parente0c96798a5fe4f4d3b5a285bf92cb97ae2f59e9e (diff)
downloadhdf5-bca6f2738bb933b3163d5eb3638fbf7ced3c7d9c.zip
hdf5-bca6f2738bb933b3163d5eb3638fbf7ced3c7d9c.tar.gz
hdf5-bca6f2738bb933b3163d5eb3638fbf7ced3c7d9c.tar.bz2
[svn-r3829] Purpose:
Bug Fix Description: The compiler on Modi4 (and possibly other machines) couldn't handle a long string being passed in with the -Wl, flag. Solution: Wrote some script which separates the string being passed into multiple flags with "-Wl,-rpath -Wl," before them. Platforms tested: Modi4
Diffstat (limited to 'bin')
-rw-r--r--bin/ltmain.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/bin/ltmain.sh b/bin/ltmain.sh
index c39588a..4d4cd92 100644
--- a/bin/ltmain.sh
+++ b/bin/ltmain.sh
@@ -2451,7 +2451,29 @@ EOF
libdir="$hardcode_libdirs"
eval rpath=\" $hardcode_libdir_flag_spec\"
fi
- finalize_rpath="$rpath"
+
+ # Hack to fix the problem with compilers on Irix[56] machines which
+ # can't handle long -Wl flags being sent to the linker during a
+ # "recompile" just before execution. -BW 20. April 2001
+ case "$host" in
+ *irix[56]*)
+ bar='';
+ libs=`echo $rpath | sed -e "s#${wl}-rpath ${wl}##" | sed -e 's#:# #g'`;
+ for foo in X $libs; do
+ if test "$foo" != "X"; then
+ if test -n "$bar"; then
+ bar='$bar ${wl}-rpath ${wl}$foo';
+ else
+ bar='${wl}-rpath ${wl}$foo';
+ fi;
+ fi;
+ done
+ finalize_rpath="$bar";
+ ;;
+ *)
+ finalize_rpath="$rpath";
+ ;;
+ esac
output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
if test "X$output_objdir" = "X$output"; then