From fe666125a65366b610d623b93f780ad6138ab39f Mon Sep 17 00:00:00 2001 From: Cray Elliott Date: Sat, 6 May 2017 23:34:03 -0700 Subject: [PATCH] ffmpeg-full: add enableLto option disabled by default, allows the user to specify if they would like a link-time optimized build or not --- pkgs/development/libraries/ffmpeg-full/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/ffmpeg-full/default.nix b/pkgs/development/libraries/ffmpeg-full/default.nix index 1839f4d0ef3..bdd3b5cea50 100644 --- a/pkgs/development/libraries/ffmpeg-full/default.nix +++ b/pkgs/development/libraries/ffmpeg-full/default.nix @@ -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")