Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Nov 2017 17:26:38 +0200
From:      Guy Yur <guyyur@gmail.com>
To:        freebsd-questions@freebsd.org, Bryan Drewery <bdrewery@freebsd.org>
Subject:   using native-xtools's make and MACHINE, MACHINE_ARCH values
Message-ID:  <CAC67Hz-LUi-sL4pWxpCCOpzPPfp7menwTqP_vusAkeN=-PUTUg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

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.
If I add -UMAKE_NATIVE -DMAKE_MACHINE=\"${MACHINE}\"
-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.

Thanks,
Guy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC67Hz-LUi-sL4pWxpCCOpzPPfp7menwTqP_vusAkeN=-PUTUg>