On Wed, 24 Aug 2022 15:20:37 +0200, Helmut Grohne wrote: > I opted for $Config{archname}, > which happens to be x86_64-linux-gnu-thread-multi on amd64. This is not > quite what we wanted x86_64-linux-gnu, but reasonably close. It also > seems to work on armhf. Do you know a better way to acquire the > architecture name?
I looked a bit at the %Config hash, and found config_arg11: -Darchname=x86_64-linux-gnu which comes from config_args: … -Darchname=x86_64-linux-gnu … but I have no idea about how to extract this value in a sane way. I also note that the documentation for Config (3perl) says: "archname" From archname.U: This variable is a short name to characterize the current architecture. It is used mainly to construct the default archlib. but then: archlib: /usr/lib/x86_64-linux-gnu/perl/5.34 I hope that Niko and Dom have more ideas :) Cheers, gregor -- .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe `-
signature.asc
Description: Digital Signature