using native-xtools's make and MACHINE, MACHINE_ARCH values

Guy Yur guyyur at
Sat Nov 18 15:26:41 UTC 2017


I am trying to use native-xtools's make (amd64 targeting armv7)
on an amd64 host in an armv7 chroot.
(qemu-arm-static and binmiscctl used for the arm binaries.)
Running /nxb-bin/usr/bin/make -V MACHINE and -V MACHINE_ARCH it
reports amd64, amd64 not arm, armv7.
(12.0-CURRENT r325963)

Do I need to override MACHINE and MACHINE_ARCH explicitly when
running nxb's make or should it report the target values?

bmake is compiled with -DMAKE_NATIVE in usr.bin/bmake/Makefile
so it uses uname, sysctl to get the values.
-DMACHINE_ARCH=\"${MACHINE_ARCH}\" to the nxb's make
compilation it reports arm and armv7.
Turning off MAKE_NATIVE also affects other things so it is
probably not be the correct change to make.


More information about the freebsd-questions mailing list