[Bug 268645] Mk/bsd.port.mk: fix --build argument in CONFIGURE_ARGS
Date: Thu, 29 Dec 2022 19:23:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268645 Bug ID: 268645 Summary: Mk/bsd.port.mk: fix --build argument in CONFIGURE_ARGS Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: thierry@FreeBSD.org CC: ports-bugs@FreeBSD.org Attachment #239122 text/plain mime type: Created attachment 239122 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239122&action=edit Mk/bsd.port.mk: fix --build argument with HOSTARCH ATM it is impossible to cross-compile when using GNU_CONFIGURE, because the --build argument is set with CONFIGURE_TARGET. As its name suggests, CONFIGURE_TARGET is set with the ARCH of the target, and this is fine for the --host argument, but --build must be set with HOSTARCH, i.e. the arch of the building machine. The attached patch (oneliner) fixes that. Remark: the CROSS_TOOLCHAIN stuff is only for LLVM and not appropriate for GCC. -- You are receiving this mail because: You are on the CC list for the bug.