From c12d1e778e4fc6bc55af6b30d090e065ddb4650e Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Wed, 22 Sep 2021 17:07:42 +0700 Subject: [PATCH] -O3 moment --- buildjdk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildjdk.sh b/buildjdk.sh index bd080788..425205ab 100755 --- a/buildjdk.sh +++ b/buildjdk.sh @@ -33,7 +33,7 @@ if [ "$BUILD_IOS" != "1" ]; then ln -s -f /usr/include/fontconfig $ANDROID_INCLUDE/ AUTOCONF_x11arg="--x-includes=$ANDROID_INCLUDE/X11" - export LDFLAGS+=" -L`pwd`/dummy_libs" + export LDFLAGS+=" -L`pwd`/dummy_libs -O3" sudo apt -y install systemtap-sdt-dev gcc-multilib g++-multilib libxtst-dev libasound2-dev libelf-dev libfontconfig1-dev libx11-dev # Create dummy libraries so we won't have to remove them in OpenJDK makefiles @@ -45,7 +45,7 @@ else platform_args="--with-toolchain-type=clang" # --disable-precompiled-headers AUTOCONF_x11arg="--with-x=/opt/X11/include/X11 --prefix=/usr/lib" - sameflags="-arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0 -DHEADLESS=1 -I$PWD/ios-missing-include -Wno-implicit-function-declaration" + sameflags="-O3 -arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0 -DHEADLESS=1 -I$PWD/ios-missing-include -Wno-implicit-function-declaration" export CFLAGS+=" $sameflags" export CXXFLAGS="$sameflags"