Skip to content

Commit

Permalink
Do not link extraneous libs in Musl case.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Jan 27, 2025
1 parent f5f7738 commit 162bdb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 162bdb4

Please sign in to comment.