git: a726dca279c5 - 2021Q2 - www/firefox: enable LTO by default on amd64

Jan Beich jbeich at FreeBSD.org
Tue May 11 17:55:53 UTC 2021


The branch 2021Q2 has been updated by jbeich:

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

commit a726dca279c52ca5014bed6bd673349b3d706714
Author:     Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-05-06 16:15:10 +0000
Commit:     Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-05-11 17:55:18 +0000

    www/firefox: enable LTO by default on amd64
    
    Builds and works fine on 11.4, 12.2, 13.0, 14.0.
    
    (cherry picked from commit 6ec985b72d587add0bd8692d3b9b2e6fab7e8714)
---
 www/firefox/Makefile         | 1 +
 www/firefox/Makefile.options | 1 +
 2 files changed, 2 insertions(+)

diff --git a/www/firefox/Makefile b/www/firefox/Makefile
index 260039da8804..708c98746909 100644
--- a/www/firefox/Makefile
+++ b/www/firefox/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	firefox
 DISTVERSION=	88.0.1
+PORTREVISION=	1
 PORTEPOCH=	2
 CATEGORIES=	www
 MASTER_SITES=	MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
diff --git a/www/firefox/Makefile.options b/www/firefox/Makefile.options
index d5a417480eb3..5687477a34d7 100644
--- a/www/firefox/Makefile.options
+++ b/www/firefox/Makefile.options
@@ -5,6 +5,7 @@ OPTIONS_DEFINE+= 	CANBERRA DBUS DEBUG FFMPEG \
 
 OPTIONS_DEFAULT+=	DBUS FFMPEG OPTIMIZED_CFLAGS PROFILE \
 			${OPTIONS_GROUP_AUDIO:NALSA}
+OPTIONS_DEFAULT_amd64+=	${${DISTVERSION:R:R} >= 86:?LTO:}
 
 OPTIONS_GROUP+=		AUDIO
 OPTIONS_GROUP_AUDIO=	ALSA JACK PULSEAUDIO SNDIO


More information about the dev-commits-ports-branches mailing list