On Fri, 5 Mar 2021 07:35:44 GMT, Aleksey Shipilev <sh...@openjdk.org> wrote:
>> Yes, original `openjdk-target` would be enough. Unfortunately, >> `AUTOCONF_NAME` seems to be the quadruplet generated from original >> `--openjdk-target`. For example, for ARM we supply >> `--openjdk-target=arm-linux-gnueabihf`, but `OPENJDK_TARGET_AUTOCONF_NAME` >> is `arm-unknown-linux-gnueabihf`, which is not the same as the subdirectory >> `arm-linux-gnueabihf`. I don't see how can I get the original >> `--openjdk-target` provided by user here. Seems to me it is not passed to >> autoconf? >> >> I'd be happy to use original `openjdk-target` if I understood how to pass it >> through... Without it, we have to resort listing gnu* variants for the >> platforms we build for. > > What I can do is parse the ABI from the original string, and then reconstruct > the triplet as `$OPENJDK_TARGET_CPU-linux-$OPENJDK_TARGET_ABI`. See the > update. This is certainly much better. Would it make sense to replace "linux" with $OPENJDK_TARGET_OS as well, just to avoid having any hard coded values there? ------------- PR: https://git.openjdk.java.net/jdk/pull/2833