[jdk8u-dev] RFR: 8281096: Flags introduced by configure script are not passed to ADLC build [v5]

Thorsten Glaser t.glaser at qvest-digital.com
Mon Feb 19 17:04:21 UTC 2024


On Mon, 19 Feb 2024, Andrew John Hughes wrote:

>I think I know what's wrong here now with the cross-compilation builds.
>The `EXTRA_CFLAGS` that HotSpot gets end up including the `--sysroot`
>options on cross-compile builds, which are really destined for the
>target compiler, not a build compiler which is compiling a build tool
>that is going to be run during the build.

Ouch. So no clean distinction between CFLAGS and HOSTCFLAGS?

>I can fix this, but it's going to make this fix a bit more involved
>than I initially thought.

Yocto has an ugly workaround:
https://github.com/ostroproject/ostro-os/blob/master/meta-java/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-adlc-flags.patch

bye,
//mirabilos
-- 
Infrastrukturexperte • Qvest Digital AG
Am Dickobskreuz 10, D-53121 Bonn • https://www.qvest-digital.com/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 18196 • USt-ID (VAT): DE274355441
Vorstand: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
Vorsitzender Aufsichtsrat: Peter Nöthen


More information about the jdk8u-dev mailing list