Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2021 23:49:31 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r566642 - head/databases/mongodb42
Message-ID:  <202102262349.11QNnVgK053375@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Fri Feb 26 23:49:31 2021
New Revision: 566642
URL: https://svnweb.freebsd.org/changeset/ports/566642

Log:
  databases/mongodb42: add LTO option and enable it
  
  Add a new option, for using LTO.
  
  As with mongodb44, make it the default.
  
  mongodb42 tries to used gold with LTO enabled, so explicitly tell it to use lld.
  
  PR:		253802
  Approved by:	ronald-lists@klop.ws (maintainer)

Modified:
  head/databases/mongodb42/Makefile

Modified: head/databases/mongodb42/Makefile
==============================================================================
--- head/databases/mongodb42/Makefile	Fri Feb 26 23:22:03 2021	(r566641)
+++ head/databases/mongodb42/Makefile	Fri Feb 26 23:49:31 2021	(r566642)
@@ -37,8 +37,8 @@ USE_RC_SUBR=	mongod
 CONFLICTS_BUILD=	mongo-cxx-driver
 CONFLICTS_INSTALL=	mongodb36 mongodb4[04]
 
-OPTIONS_DEFINE=	SASL SSL
-OPTIONS_DEFAULT=SASL SSL
+OPTIONS_DEFINE=	LTO SASL SSL
+OPTIONS_DEFAULT=LTO SASL SSL
 
 SHEBANG_FILES=	src/mongo/installer/compass/install_compass.in
 python_OLD_CMD=	@python_interpreter@
@@ -57,6 +57,9 @@ MAKE_ARGS=	--prefix=${STAGEDIR}${PREFIX} \
 
 USERS=		mongodb
 GROUPS=		mongodb
+
+LTO_LDFLAGS=	-fuse-ld=lld
+LTO_MAKE_ARGS=	--lto=on
 
 SASL_LIB_DEPENDS=	libsasl2.so:security/cyrus-sasl2
 SASL_MAKE_ARGS=		--use-sasl-client



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102262349.11QNnVgK053375>