diff --git a/java17-openjdk/PKGBUILD b/java17-openjdk/PKGBUILD index 800f09b..ad48a62 100644 --- a/java17-openjdk/PKGBUILD +++ b/java17-openjdk/PKGBUILD @@ -56,7 +56,7 @@ build() { # Avoid optimization of HotSpot to be lowered from O3 to O2 local _CFLAGS="${CFLAGS//-O2/-O3} ${CPPFLAGS} -fcommon" - local _CXXFLAGS="${CXXFLAGS//-O2/-O3} ${CPPFLAGS} -fcommon" + local _CXXFLAGS="${CXXFLAGS//-O2/-O3} ${CPPFLAGS} -fcommon -fno-inline" local _LDFLAGS=${LDFLAGS} if [[ ${CARCH} = i686 ]]; then echo "Removing '-fno-plt' from CFLAGS and CXXFLAGS to prevent build fail with this architecture"