commit:     64d9cb6d1ff5162995fa84f6480da442a63f5223
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 20 20:49:31 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Jul 21 15:47:50 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=64d9cb6d

gkbuild.sh: Refactor gklibtoolize() function

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 worker_modules/gkbuild.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/worker_modules/gkbuild.sh b/worker_modules/gkbuild.sh
index 20de263..32940a1 100644
--- a/worker_modules/gkbuild.sh
+++ b/worker_modules/gkbuild.sh
@@ -664,7 +664,12 @@ gkconf() {
 gklibtoolize() {
        type -P eltpatch &>/dev/null || die "eltpatch not found; is 
app-portage/elt-patches installed?"
 
-       gkexec "ELT_LOGDIR=\"${T}\" LD=\"$(tc-getLD)\" eltpatch ${*}"
+       local command=( "ELT_LOGDIR='${T}'" )
+       command+=( "LD='$(tc-getLD)'" )
+       command+=( "eltpatch" )
+       command+=( "${@}" )
+
+       gkexec "${command[*]}"
 }
 
 # @FUNCTION: gkmake

Reply via email to