From f2fb16a0b96c83216835f889fdc917fa1a142e71 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Fri, 14 Apr 2017 17:01:24 -0400 Subject: [PATCH] Improved library check that doesn't depend on wording of error message. --- platform-independent/cli-c/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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