diff --git a/buildjdk.sh b/buildjdk.sh index 7f6cb42..0c2a63c 100755 --- a/buildjdk.sh +++ b/buildjdk.sh @@ -15,7 +15,6 @@ sudo apt -y install gcc-multilib g++-multilib libxtst-dev libasound2-dev libelf- cd openjdk rm -rf build -# --with-toolchain-type=clang \ bash ./configure \ --enable-option-checking=fatal \ --build=x86_64-linux-gnu \ @@ -29,12 +28,20 @@ bash ./configure \ --with-debug-level=release \ --with-freetype-lib=$FREETYPE_DIR/lib \ --with-freetype-include=$FREETYPE_DIR/include/freetype2 \ + --with-toolchain-type=clang \ --x-includes=/usr/include \ --x-libraries=/usr/lib \ || error_code=$? if [ "$error_code" -ne 0 ]; then echo "\n\nCONFIGURE ERROR $error_code , config.log:" cat config.log + +# remove later +sudo apt -y install silversearcher-ag +echo "--- BEGIN SEARCH ---" +ag "-march=i686" +echo "--- ENDED SEARCH ---" + exit $error_code fi