Bug 253802 - databases/mongodb42: add LTO option and enable it
Summary: databases/mongodb42: add LTO option and enable it
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-23 18:37 UTC by Piotr Kubaj
Modified: 2021-02-26 23:50 UTC (History)
1 user (show)

See Also:
ronald-lists: maintainer-feedback+


Attachments
patch (655 bytes, patch)
2021-02-23 18:37 UTC, Piotr Kubaj
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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