x264: flatten configureFlags (#118789)

This commit is contained in:
Orivej Desh 2021-04-08 09:09:32 +00:00 committed by GitHub
parent ff5ff66ef3
commit 9741a4b3b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}";