Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: CVS commit: src/usr.sbin/amd/libamu



   
   > 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? :-)



Home | Main Index | Thread Index | Old Index