"Cross" building for same architecture, different CPUTYPE

Warner Losh imp at bsdimp.com
Sun Mar 4 17:58:11 UTC 2018


On Sun, Mar 4, 2018 at 10:43 AM, Dimitry Andric <dim at freebsd.org> wrote:

> Again, this depends on how exactly you are overriding CPUTYPE.


I'd suggest *NOT* setting CPUTYPE and instead using TARGET_CPUTYPE to do
these sorts of things. CPUTYPE is known to only work on native builds and
is tricky to do in this scenario just so. It might work for 'near cross'
builds, or it might not. TARGET_CPUTYPE overrides CPUTYPE that might be set
in weird places and generally works a lot better. You don't need to set
TARGET or TARGET_ARCH to do this, but it would work if you did that also.

Warner


More information about the freebsd-stable mailing list