From b8a03cec225e78bb112c66836fc85720801cb377 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 3 Oct 2022 09:57:35 +0800 Subject: [PATCH] flac: set CFLAGS and CXXFLAGS to match performance of autotools build --- pkgs/applications/audio/flac/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/audio/flac/default.nix b/pkgs/applications/audio/flac/default.nix index 644a19c0f040..bebb35f45009 100644 --- a/pkgs/applications/audio/flac/default.nix +++ b/pkgs/applications/audio/flac/default.nix @@ -33,6 +33,9 @@ stdenv.mkDerivation rec { "-DBUILD_SHARED_LIBS=ON" ]; + CFLAGS = [ "-O3" "-funroll-loops" ]; + CXXFLAGS = [ "-O3" ]; + # doCheck = true; # takes lots of time outputs = [ "bin" "dev" "out" "man" "doc" ];