From 95c949a012b32eda3b13ce7dbd952472bfc578a6 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sun, 29 Sep 2013 21:08:29 +0200 Subject: [PATCH] musl: fixed parse-config-fixarch to properly fix arch_target in the case it doesn't end with "gnu" --- base/musl/parse-config-fixarch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/musl/parse-config-fixarch b/base/musl/parse-config-fixarch index c4ae94bf1..96d8f2fc7 100644 --- a/base/musl/parse-config-fixarch +++ b/base/musl/parse-config-fixarch @@ -12,6 +12,6 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- -if [ "$SDECFG_LIBC" == "musl" -a "${arch_target%gnu}" != "$arch_target" ]; then - arch_target=${arch_target%gnu}musl +if [ "$SDECFG_LIBC" == "musl" -a "${arch_target%gnu*}" != "$arch_target" ]; then + arch_target=${arch_target/gnu/musl} fi