Bug 253777 - editors/libreoffice: add LTO option
Summary: editors/libreoffice: add LTO option
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 Office Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-23 00:49 UTC by Piotr Kubaj
Modified: 2021-02-23 11:05 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (office)


Attachments
patch (1.15 KB, patch)
2021-02-23 00:49 UTC, Piotr Kubaj
fluffy: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer 2021-02-23 00:49:32 UTC
Created attachment 222735 [details]
patch

LLD fails to link libreoffice, so ld.bfd needs to be used. Since LLVMgold.so (used for LTO with binutils) is not included in base, LLVM from ports needs to be used.
Comment 1 Dima Panov freebsd_committer 2021-02-23 03:18:17 UTC
Comment on attachment 222735 [details]
patch

LGTM, ship it!
Comment 2 commit-hook freebsd_committer 2021-02-23 11:03:05 UTC
A commit references this bug:

Author: pkubaj
Date: Tue Feb 23 11:02:21 UTC 2021
New revision: 566388
URL: https://svnweb.freebsd.org/changeset/ports/566388

Log:
  editors/libreoffice: add LTO option

  LLD fails to link libreoffice, so ld.bfd needs to be used. Since LLVMgold.so (used for LTO with binutils) is not included in base, LLVM from ports needs to be used.

  PR:		253777
  Approved by:	fluffy (maintainer)

Changes:
  head/editors/libreoffice/Makefile