Bug 268645 - Mk/bsd.port.mk: fix --build argument in CONFIGURE_ARGS
Summary: Mk/bsd.port.mk: fix --build argument in CONFIGURE_ARGS
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-29 19:23 UTC by Thierry Thomas
Modified: 2022-12-30 19:11 UTC (History)
1 user (show)

See Also:


Attachments
Mk/bsd.port.mk: fix --build argument with HOSTARCH (692 bytes, text/plain)
2022-12-29 19:23 UTC, Thierry Thomas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Thomas freebsd_committer freebsd_triage 2022-12-29 19:23:03 UTC
Created attachment 239122 [details]
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.