1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

ffmpeg-full: add enableLto option

disabled by default, allows the user to specify if they would like a
link-time optimized build or not
This commit is contained in:
Cray Elliott 2017-05-06 23:34:03 -07:00
parent 965bffdb69
commit fe666125a6

View file

@ -17,6 +17,7 @@
, multithreadBuild ? true # Multithreading via pthreads/win32 threads
, networkBuild ? true # Network support
, pixelutilsBuild ? true # Pixel utils in libavutil
, enableLto ? false # build with link-time optimization
/*
* Program options
*/
@ -257,6 +258,7 @@ stdenv.mkDerivation rec {
(if stdenv.cc.isClang then "--cc=clang" else null)
(enableFeature smallBuild "small")
(enableFeature runtimeCpuDetectBuild "runtime-cpudetect")
(enableFeature enableLto "lto")
(enableFeature grayBuild "gray")
(enableFeature swscaleAlphaBuild "swscale-alpha")
(enableFeature hardcodedTablesBuild "hardcoded-tables")