From owner-svn-ports-head@freebsd.org Fri Feb 26 23:49:31 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C6ED9552FCD; Fri, 26 Feb 2021 23:49:31 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DnRG35GcHz3LGN; Fri, 26 Feb 2021 23:49:31 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A7C9F13C3E; Fri, 26 Feb 2021 23:49:31 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 11QNnVdx053376; Fri, 26 Feb 2021 23:49:31 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 11QNnVgK053375; Fri, 26 Feb 2021 23:49:31 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202102262349.11QNnVgK053375@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Fri, 26 Feb 2021 23:49:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r566642 - head/databases/mongodb42 X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/databases/mongodb42 X-SVN-Commit-Revision: 566642 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2021 23:49:31 -0000 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