From 9741a4b3b489487939b34bc7a13c116b5793a714 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 8 Apr 2021 09:09:32 +0000 Subject: [PATCH] x264: flatten configureFlags (#118789) --- pkgs/development/libraries/x264/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/x264/default.nix b/pkgs/development/libraries/x264/default.nix index ede8e1e317b..5b82c594b08 100644 --- a/pkgs/development/libraries/x264/default.nix +++ b/pkgs/development/libraries/x264/default.nix @@ -30,7 +30,7 @@ stdenv.mkDerivation rec { export AS=$CC ''; - configureFlags = lib.optional enableShared [ "--enable-shared" ] + configureFlags = lib.optional enableShared "--enable-shared" ++ lib.optional (!stdenv.isi686) "--enable-pic" ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "--cross-prefix=${stdenv.cc.targetPrefix}";