git: 6419fe98c4f4 - main - Mk/Uses/cargo.mk: Enable LTO again

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Wed, 24 Jul 2024 19:06:48 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6419fe98c4f4dff6997da40aad38845c388e6630

commit 6419fe98c4f4dff6997da40aad38845c388e6630
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-07-24 19:01:50 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-07-24 19:06:37 +0000

    Mk/Uses/cargo.mk: Enable LTO again
    
    Disabled in 06601897e5cd4afcc31f3b508b2cbb2bc7d4a677
    
    Previous commit 967022fd812cf67dec264ee4e53bd016b69e7a2b
---
 Mk/Uses/cargo.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
index 11e678f3361d..be6e187e4945 100644
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -139,8 +139,9 @@ CARGO_ENV+= \
 CARGO_ENV+=	RUST_BACKTRACE=1
 .  endif
 
-.  if defined(WITH_LTO)
+.  if !defined(WITHOUT_LTO)
 _CARGO_MSG=	"===>   Additional optimization to port applied"
+WITH_LTO=	yes
 .  endif
 
 # Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk