Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 716758

Summary: www-client/firefox[lto]: link does not respect MAKEOPTS
Product: Gentoo Linux Reporter: phkb <phkbphkbphkb>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Full link command, note the -flto=4 argument

Description phkb 2020-04-09 07:06:49 UTC
Created attachment 631440 [details]
Full link command, note the -flto=4 argument

I'm building firefox with lto enabled. I have MAKEOPTS="-j1" in my make.conf. However, the link command is called with -flto=4, which in turn runs "make -j4".

I suspect that there is some autodetection of the number of CPUs, as I have a quad-core CPU. Would it be possible to respect the -j option in MAKEOPTS here?
Comment 1 Larry the Git Cow gentoo-dev 2020-04-14 23:42:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00b314f5b85150726978be1bde94e13e5cdb0c85

commit 00b314f5b85150726978be1bde94e13e5cdb0c85
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-04-14 23:13:27 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-04-14 23:42:03 +0000

    www-client/firefox: make USE=lto respect MAKEOPTS
    
    Closes: https://bugs.gentoo.org/716758
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/firefox-68.7.0.ebuild |  8 +++++++-
 www-client/firefox/firefox-75.0.ebuild   | 11 +++++++++--
 2 files changed, 16 insertions(+), 3 deletions(-)