From ccf8be72c625eee704b68c25364be3eaf7818418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 1 Sep 2010 08:34:44 +0000 Subject: [PATCH] Making the x264 libs build with PIC on non-i686, as it's the only platform I know that does not need PIC for shared libraries. svn path=/nixpkgs/branches/stdenv-updates/; revision=23576 --- pkgs/development/libraries/x264/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/x264/default.nix b/pkgs/development/libraries/x264/default.nix index 4bd1c97fb6cd..9e5676e20123 100644 --- a/pkgs/development/libraries/x264/default.nix +++ b/pkgs/development/libraries/x264/default.nix @@ -13,7 +13,8 @@ stdenv.mkDerivation rec { sed -i s,/bin/bash,${stdenv.shell}, configure version.sh ''; - configureFlags = [ "--enable-shared" ]; + configureFlags = [ "--enable-shared" ] + ++ stdenv.lib.optional (!stdenv.isi686) "--enable-pic"; buildInputs = [ yasm ];