[Bug 277333] Mk/Features/lto.mk: passing -C lto=no breaks LTO_UNSAFE ports

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 26 Mar 2024 18:08:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277333

--- Comment #17 from Jan Beich <jbeich@FreeBSD.org> ---
To summarize, WITH_LTO looks like crap to me:
- LTO_UNSAFE with inconsistent (CARGO_PROFILE_* vs. RUSTFLAGS) and unexpected
semantics (LTO_UNSAFE vs. WITHOUT_LTO)
- Modifies RUSTFLAGS without passing to MAKE_ENV (for ports *without*
USES=cargo)
- Overrides individual CARGO_ENV assignemnets in consumers
- Fakes LTO in USES=cabal (-Wl,--gc-sections is a different thing and common in
C/C++ world)

I may be wrong but you can easily test via devel/texlab which is fast to build.

-- 
You are receiving this mail because:
You are on the CC list for the bug.