From 8a331c4d3ad06c5416d49b5a84e4c02d3deb7a68 Mon Sep 17 00:00:00 2001 From: Tran Khanh Duy <40482367+khanhduytran0@users.noreply.github.com> Date: Sat, 12 Sep 2020 13:13:50 +0700 Subject: [PATCH] Print config.log on configure error --- buildjdk.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/buildjdk.sh b/buildjdk.sh index 58fbc74..3d29629 100755 --- a/buildjdk.sh +++ b/buildjdk.sh @@ -26,7 +26,14 @@ bash ./configure \ --with-devkit=$ANDROID_DEVKIT \ --with-debug-level=release \ --with-freetype-lib=$FREETYPE_DIR/lib \ - --with-freetype-include=$FREETYPE_DIR/include/freetype2 + --with-freetype-include=$FREETYPE_DIR/include/freetype2 \ + || error_code=$? +if [ "${error_code}" -ne 0 ]; then + echo "\n\nCONFIGURE ERROR, config.log:" + cat config.log + exit $error_code +fi + cd build/android-aarch64-normal-server-release make JOBS=4 images