Subject: re: CVS commit: src/usr.sbin/amd/libamu
To: Jason Thorpe <thorpej@shagadelic.org>
From: matthew green <mrg@eterna.com.au>
List: source-changes
Date: 08/10/2005 13:41:06
> Amd(8) have ${arch} and ${karch} selectors. ${arch} is fetched from
> the compile-time HOST_ARCH string (it's now ${MACHINE} string). And
> ${karch} is fetched from uname(3).
I think this is historical Sun legacy ... a sparc machine might be
sun4c, sun4m, sun4d, etc.
On NetBSD, ${arch} should probably be hw.machine_arch and ${karch}
should probably be hw.machine, and both should be fetched at run-time.
i agree. while this doesn't allow choose based on eg, sun4c vs sun4m,
netbsd doesn't really provide an easy way for this currently.
random idea: perhaps random sysctl strings could be used, like we do
for ld.so.conf? :-)