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

View file

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