git: bbc0b39ef7df - main - make.conf.5: add CPUTYPE?= note from UPDATING
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 May 2025 16:45:02 UTC
The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=bbc0b39ef7df3007c78eec8822213fe77aae4d41 commit bbc0b39ef7df3007c78eec8822213fe77aae4d41 Author: Alexander Ziaee <ziaee@FreeBSD.org> AuthorDate: 2025-05-21 16:43:37 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2025-05-21 16:43:39 +0000 make.conf.5: add CPUTYPE?= note from UPDATING Cross-compilation needs CPUTYPE to be set with ?= to be overideable via make targets. This has historically been mentioned in the FOOTNOTES of UPDATING. Note that in the CPUTYPE documentation in make.conf(5) for discoverability. Leave it in UPDATING for now to create no regression in the doc there. MFC after: 3 days Reviewed by: carlavilla, ivy Approved by: carlavilla (mentor) Differential Revision: https://reviews.freebsd.org/D50277 --- share/man/man5/make.conf.5 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/share/man/man5/make.conf.5 b/share/man/man5/make.conf.5 index ebf1b8a119f7..46bfa91d36ba 100644 --- a/share/man/man5/make.conf.5 +++ b/share/man/man5/make.conf.5 @@ -158,6 +158,15 @@ and .Va COPTFLAGS to contain the appropriate optimization directive to .Xr cc 1 . +To set the +.Va CPUTYPE +value, use +.Dq Li ?= +instead of +.Dq Li = +so that it can be overridden by +.Xr make 1 +targets. The automatic setting of .Va CFLAGS may be overridden using the