From 4b8cce8a91bb98c1b19123a9e0a7476d3c381a9a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 20 Jan 2019 16:29:09 -0500 Subject: [PATCH] Fix library installed check. Output cannot be truncated. Also suppress error output from gcc. --- chocpkg/modules/check_library.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chocpkg/modules/check_library.sh b/chocpkg/modules/check_library.sh index 91b8338..9e71418 100644 --- a/chocpkg/modules/check_library.sh +++ b/chocpkg/modules/check_library.sh @@ -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 }