[Nix-dev] Re: adapters.nix ... patch making pidgin compile

Marc Weber marco-oweber at gmx.de
Fri Mar 13 03:32:43 CET 2009


On Wed, Mar 11, 2009 at 03:21:07PM +0100, Lluís Batlle wrote:
> I also prefer having all per package for the -fPIC option but I
> thought on the adapters idea for the -m32.
> 
> About -fPIC, each package may know what to compile with -fPIC and what
> not (programs, for example).
> 
perl does not. After applying this patch pidgin compiles fine.

diff --git a/pkgs/development/interpreters/perl-5.10/default.nix b/pkgs/development/interpreters/perl-5.10/default.nix
index cb479c9..486bb8f 100644
--- a/pkgs/development/interpreters/perl-5.10/default.nix
+++ b/pkgs/development/interpreters/perl-5.10/default.nix
@@ -9,6 +9,8 @@ stdenv.mkDerivation {
     sha256 = "0bivbz15x02m02gqs6hs77cgjr2msfrhnvp5xqk359jg6w6llill";
   };
 
+  NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
+
   patches = [
     # This patch does the following:
     # 1) Do use the PATH environment variable to find the `pwd' command.


Marc Weber



More information about the nix-dev mailing list