[arch-commits] Commit in java8-openjdk/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Fri Dec 24 09:48:13 UTC 2021
Date: Friday, December 24, 2021 @ 09:48:12
Author: arojas
Revision: 433015
Adjust build flags and disable LTO to fix missing symbols (FS#73134)
Modified:
java8-openjdk/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-24 09:37:06 UTC (rev 433014)
+++ PKGBUILD 2021-12-24 09:48:12 UTC (rev 433015)
@@ -9,7 +9,7 @@
_jdk_build=10
pkgver=${_java_ver}.u${_jdk_update}
_repo_ver=jdk${_java_ver}u${_jdk_update}-ga
-pkgrel=1
+pkgrel=2
arch=('x86_64')
url='https://openjdk.java.net/'
license=('custom')
@@ -25,7 +25,7 @@
langtools-${_repo_ver}.tar.gz::${_url_src}/langtools/archive/${_repo_ver}.tar.gz
nashorn-${_repo_ver}.tar.gz::${_url_src}/nashorn/archive/${_repo_ver}.tar.gz
gcc11.patch)
-
+options=(!lto)
sha256sums=('c10d984ab561f9e9733c313432e0da88bed9cde5202b462bc73cfe488fc65328'
'0a66933a2d7011eece138ca1e8d3db584335c711463092c79ada638c825c41d1'
'1bef21655dae14e1964c14add6c23c6c2f555a79e269a3bfe06e8a8d2a23fd0a'
@@ -68,8 +68,9 @@
export MAKEFLAGS=${MAKEFLAGS/-j*}
# Avoid optimization of HotSpot being lowered from O3 to O2
- export CFLAGS="${CFLAGS//-O2/-O3} -Wno-error=deprecated-declarations -Wno-error=stringop-overflow= -Wno-error=return-type -Wno-error=cpp -fno-lifetime-dse -fno-delete-null-pointer-checks -fcommon -Wno-error=format-overflow="
- export CXXFLAGS="${CXXFLAGS} -fcommon"
+ # -fno-exceptions for FS#73134
+ export CFLAGS="${CFLAGS//-O2/-O3} -Wno-error=nonnull -Wno-error=deprecated-declarations -Wno-error=stringop-overflow= -Wno-error=return-type -Wno-error=cpp -fno-lifetime-dse -fno-delete-null-pointer-checks -fcommon -fno-exceptions -Wno-error=format-overflow="
+ export CXXFLAGS="${CXXFLAGS} -fcommon -fno-exceptions"
install -d -m 755 "${srcdir}/${_prefix}/"
sh configure \
More information about the arch-commits
mailing list