Skip to content

Commit

Permalink
fix: always prefer glibc to musl in mise run (#3261)
Browse files Browse the repository at this point in the history
Fixes #2276

@autarch says this is a good idea, I suppose we will see
  • Loading branch information
jdx authored Nov 28, 2024
1 parent 46e9b8a commit 3860e95
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packaging/standalone/install.envsubst
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ get_os() {

get_arch() {
musl=""
if type ldd >/dev/null 2>/dev/null; then
libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
if [ -n "$libc" ]; then
musl="-musl"
fi
fi
if [ "${MISE_GLIBC-}" = "1" ]; then
musl=""
elif [ "$(get_os)" = "linux" ]; then
musl="-musl"
fi
arch="$(uname -m)"
if [ "$arch" = x86_64 ]; then
echo "x64$musl"
Expand Down

0 comments on commit 3860e95

Please sign in to comment.