1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

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 <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-01-28 11:38:58 -06:00
parent fe76c353af
commit 7f93f0620c

View File

@ -3982,6 +3982,8 @@ func_exec_program_core ()
# launches target application with the remaining arguments. # launches target application with the remaining arguments.
func_exec_program () func_exec_program ()
{ {
case \" \$* \" in
*\\ --lt-*)
for lt_wr_arg for lt_wr_arg
do do
case \$lt_wr_arg in case \$lt_wr_arg in
@ -3989,7 +3991,8 @@ func_exec_program ()
*) set x \"\$@\" \"\$lt_wr_arg\"; shift;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
esac esac
shift shift
done done ;;
esac
func_exec_program_core \${1+\"\$@\"} func_exec_program_core \${1+\"\$@\"}
} }