Do not link extraneous libs in Musl case.

This commit is contained in:
Yury Gribov
2025-01-27 08:20:32 +03:00
parent f5f773815b
commit 162bdb4d0e
+3
View File
@@ -95,6 +95,9 @@ fi
if uname | grep -q BSD; then
LIBS='-pthread'
elif echo "$CC" | grep -q musl-gcc; then
# Just libc.so in musl
LIBS=
else
LIBS='-ldl -pthread'
fi