Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598384 - www-client/chromium should get lto USE flag
Summary: www-client/chromium should get lto USE flag
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-28 20:32 UTC by Rok Kralj
Modified: 2016-11-13 15:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rok Kralj 2016-10-28 20:32:36 UTC
It seems that flags defined in make.conf get stripped prior to Chromium compilation.

Would it be possible to compile Chromium with LTO optimizations? If not, where is the barrier?
Comment 1 Mike Gilbert gentoo-dev 2016-10-28 21:38:01 UTC
I can't see us adding an lto USE flag. You can use the custom-cflags USE flag to prevent the -flto flag from being dropped.
Comment 2 octoploid 2016-10-31 20:38:53 UTC
Also be aware that this need huge amounts of memory, e.g.
you cannot build LTO chromium on a 8GB machine with gcc.

Clang with -flto=thin is much better memory wise, but last time I've tried it crashed during the final link.