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

Bug 681882

Summary: media-libs/x264 - add USE=lto
Product: Gentoo Linux Reporter: Alec Ari <neotheuser>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: UNCONFIRMED ---    
Severity: normal CC: eschwartz93, mackal.cook
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    

Description Alec Ari 2019-03-27 21:26:34 UTC
media-libs/x264 is missing an option for lto.

One more thing, the git repository has changed from:

https://git.videolan.org/git/x264.git

to:

https://code.videolan.org/videolan/x264.git

While the git.videolan.org mirror may still work, it being obsoleted.

Thanks!
Comment 1 Michael Cook 2024-02-01 01:21:41 UTC
I just added filter-lto and added $(usex lto "--enable-lto" "") to the configure script bit. This does call filter-lto multiple times, which I don't think it strictly necessary. The configure flag seems to just pass -flto=auto when it's set, so unless we patch it, we don't need to handle whatever the user might want to use in their CFLAGS ...


This seems to work
Comment 2 Eli Schwartz 2024-03-11 21:03:24 UTC
What's the advantage of this over just putting -flto into your make.conf COMMON_FLAGS?