From 4157dc7283d461d8b2f17425d02c1853b14d3312 Mon Sep 17 00:00:00 2001 From: midipix Date: May 27 2021 04:42:43 +0000 Subject: build system: ccenv_set_cc(): fix parenthesis in fallback sub-shell code path. --- diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh index 14e8b9a..378071f 100644 --- a/sofort/ccenv/ccenv.sh +++ b/sofort/ccenv/ccenv.sh @@ -495,8 +495,8 @@ ccenv_set_cc() ccenv_host=$(eval $ccenv_cc $(printf '%s' "$ccenv_cflags") \ $ccenv_dumpmachine_switch 2>&3) else - ccenv_host=$(printf '%s' $(uname -m)-$(uname -p)-$(uname -o)) \ - | tr '[[:upper:]]' '[[:lower:]]' + ccenv_host=$(printf '%s' $(uname -m)-$(uname -p)-$(uname -o) \ + | tr '[[:upper:]]' '[[:lower:]]') fi ccenv_cchost=$ccenv_host @@ -519,8 +519,8 @@ ccenv_set_cc() elif [ -z "$ccenv_host" ]; then # assume that no -dumpmachine support means native build (fixme) - ccenv_host=$(printf '%s' $(uname -m)-$(uname -p)-$(uname -o)) \ - | tr '[[:upper:]]' '[[:lower:]]' 2>&3 + ccenv_host=$(printf '%s' $(uname -m)-$(uname -p)-$(uname -o) \ + | tr '[[:upper:]]' '[[:lower:]]') ccenv_cchost=$ccenv_host elif [ -n "$ccenv_dumpmachine_switch" ]; then