diff options
author | Alexey Neyman <stilor@att.net> | 2017-08-31 12:13:51 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-09-03 12:12:14 -0700 |
commit | 1e4eeb5c3b0f9156ed679c4aed50ba5f97c3939b (patch) | |
tree | c29bd1a8c1f569b93b01f43f3607a5b30a828e75 /scripts/functions | |
parent | e83a2e233326f183766b78e579332880339cb5e7 (diff) | |
download | crosstool-ng-1e4eeb5c3b0f9156ed679c4aed50ba5f97c3939b.tar.gz crosstool-ng-1e4eeb5c3b0f9156ed679c4aed50ba5f97c3939b.tar.bz2 crosstool-ng-1e4eeb5c3b0f9156ed679c4aed50ba5f97c3939b.zip |
Workaround for static uClibc-ng issue with -lpthread
Also, preserve .config when running test-package.sh.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index dde3eb7e..b8b49133 100644 --- a/scripts/functions +++ b/scripts/functions @@ -318,10 +318,24 @@ CT_DoExecLog() { local level="$1" local cur_cmd local ret + local cmd_seen shift + ( for i in "$@"; do - cur_cmd+="'${i}' " + case "${i}" in + *=*) + if [ -z "${cmd_seen}" ]; then + cur_cmd+=" ${i%%=*}='${i#*=}'" + else + cur_cmd+=" '${i}'" + fi + ;; + *) + cur_cmd+=" '${i}'" + cmd_seen=y + ;; + esac done while true; do case "${1}" in |