From bca6f2738bb933b3163d5eb3638fbf7ced3c7d9c Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 20 Apr 2001 19:00:46 -0500 Subject: [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 --- bin/ltmain.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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 -- cgit v0.12