Frederik Schwan pushed to branch main at Arch Linux / Packaging / Packages /
java17-openjdk
Commits:
ad533b45 by Frederik Schwan at 2026-02-16T10:37:50+01:00
remove compile flags for unsupported architectures
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -71,7 +71,6 @@
sha256sums=('7ebfcc2aafd514c23df3fe5280e1a34630b9b1d429c65a80dd5a4b6e7f177bc3'
case "${CARCH}" in
x86_64) _JARCH='x86_64';;
- i686) _JARCH='x86';;
riscv64)_JARCH='riscv64';;
aarch64)_JARCH='aarch64';;
esac
@@ -115,19 +114,14 @@ build() {
local _CFLAGS="${CFLAGS//-O2/-O3} ${CPPFLAGS} -fcommon"
local _CXXFLAGS="${CXXFLAGS//-O2/-O3} ${CPPFLAGS} -fcommon"
local _LDFLAGS=${LDFLAGS}
- if [[ ${CARCH} = i686 ]]; then
- echo "Removing '-fno-plt' from CFLAGS and CXXFLAGS to prevent build fail
with this architecture"
- _CFLAGS=${CFLAGS/-fno-plt/}
- _CXXFLAGS=${CXXFLAGS/-fno-plt/}
- fi
# TODO: Should be rechecked for the next releases
# compiling with -fexceptions leads to:
# /usr/bin/ld:
/build/java-openjdk/src/jdk17u-jdk-17.0.3-2/build/linux-x86_64-server-release/hotspot/variant-server/libjvm/objs/zPhysicalMemory.o:
in function `ZList<ZMemory>::~ZList()':
#
/build/java-openjdk/src/jdk17u-jdk-17.0.3-2/src/hotspot/share/gc/z/zList.hpp:54:
undefined reference to `ZListNode<ZMemory>::~ZListNode()'
# collect2: error: ld returned 1 exit status
- _CFLAGS=${CFLAGS/-fexceptions/}
- _CXXFLAGS=${CXXFLAGS/-fexceptions/}
+ _CFLAGS=${_CFLAGS/-fexceptions/}
+ _CXXFLAGS=${_CXXFLAGS/-fexceptions/}
# CFLAGS, CXXFLAGS and LDFLAGS are ignored as shown by a warning
# in the output of ./configure unless used like such:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/java17-openjdk/-/commit/ad533b4525ae279ac5ff60fdf157f5f0904e48b5
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/java17-openjdk/-/commit/ad533b4525ae279ac5ff60fdf157f5f0904e48b5
You're receiving this email because of your account on gitlab.archlinux.org.