Bug 253802

Summary: databases/mongodb42: add LTO option and enable it
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: ronald-lists
Priority: --- Flags: ronald-lists: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Piotr Kubaj freebsd_committer freebsd_triage 2021-02-23 18:37:44 UTC
Created attachment 222766 [details]
patch

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.
Comment 1 Ronald Klop 2021-02-26 20:36:58 UTC
Comment on attachment 222766 [details]
patch

As I can not compile test it on my hardware because LTO uses a lot of memory I will remove the default as soon as the build clusters are giving errors. (which they probably will not do as the submitter has of course tested this :-) )
Comment 2 Piotr Kubaj freebsd_committer freebsd_triage 2021-02-26 23:49:35 UTC
Thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-02-26 23:49:43 UTC
A commit references this bug:

Author: pkubaj
Date: Fri Feb 26 23:49:31 UTC 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)

Changes:
  head/databases/mongodb42/Makefile
Comment 4 commit-hook freebsd_committer freebsd_triage 2021-02-26 23:50:44 UTC
A commit references this bug:

Author: pkubaj
Date: Fri Feb 26 23:50:33 UTC 2021
New revision: 566643
URL: https://svnweb.freebsd.org/changeset/ports/566643

Log:
  databases/mongodb42: bump PORTREVISION after changing default options

  PR:		253802
  Approved by:	ronald-lists@klop.ws (maintainer)

Changes:
  head/databases/mongodb42/Makefile