From 7f93f0620c44a811aa7989f6d2ed1bf4ba275d62 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 28 Jan 2011 11:38:58 -0600 Subject: Fix libtool performance regression with many arguments Reported and fixed upstream, patching our version for now until a future release fixes it: * http://lists.gnu.org/archive/html/bug-libtool/2011-01/msg00007.html * http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=286e87b1030c353d9cfc89dbb72d59e0391cb693 Signed-off-by: Dan McGee --- ltmain.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/ltmain.sh b/ltmain.sh index 3061e3c5..6c02b188 100755 --- a/ltmain.sh +++ b/ltmain.sh @@ -3982,14 +3982,17 @@ func_exec_program_core () # launches target application with the remaining arguments. func_exec_program () { - for lt_wr_arg - do - case \$lt_wr_arg in - --lt-*) ;; - *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; - esac - shift - done + case \" \$* \" in + *\\ --lt-*) + for lt_wr_arg + do + case \$lt_wr_arg in + --lt-*) ;; + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; + esac + shift + done ;; + esac func_exec_program_core \${1+\"\$@\"} } -- cgit v1.2.3-70-g09d2