diff --git a/platform-independent/cli-c/build b/platform-independent/cli-c/build index 52ca6804..7469a07d 100755 --- a/platform-independent/cli-c/build +++ b/platform-independent/cli-c/build @@ -339,7 +339,7 @@ mpw-tests() { ### TARGETS haslib() { - ! LC_ALL=C cc -l"$1" 2>&1 | grep -q 'library not found' + return cc -l"$1" -x c -o /dev/null - <<< 'int main() { return 0; }' } cc() { if hash llvm-gcc 2>/dev/null; then