Fix library installed check.

Output cannot be truncated. Also suppress error output from gcc.
This commit is contained in:
Simon Howard 2019-01-20 16:29:09 -05:00
parent adcff97ec8
commit 4b8cce8a91
1 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,8 @@ do_check() {
# TODO: A better way to choose compiler command?
${CC:-gcc} \
-l$PACKAGE_INSTALLED_LIB $LDFLAGS \
-o/dev/null \
-x c <( echo "int main() {}")
-o$PACKAGE_INSTALL_DIR/__install_check \
-x c <( echo "int main() {}") \
2>/dev/null
}