3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/perl-5.8
Peter Simons 1e575d3572 perl-5.8 and perl-5.10: fixed build on MacOS X
On MacOS X, we used to use the native perl interpreter from /usr/bin.
Unfortunately, that interpreter fails to build a number of packages
(Subversion, Git, etc. ...), because it assumes knowledge about the
underlying C compiler that is not valid for the compiler used by Nix.
For example, /usr/bin/perl assumes that the compiler can build binaries
for both the ppc and the x86 architecture. /usr/bin/gcc can do that, but
the gcc from Nix can't.

The solution is to compile Perl 5.10 in Nix so that the ./configure
phase can properly detect the system's capabilities. However, note that
the resulting binary is impure: it will find headers in /usr/include and
libraries in /usr/lib. In this respect, the Nix-compiled perl binary is
no different than the native one in /usr/bin -- it's just configured
more accurately.

svn path=/nixpkgs/trunk/; revision=17870
2009-10-19 09:17:10 +00:00
..
default.nix perl-5.8 and perl-5.10: fixed build on MacOS X 2009-10-19 09:17:10 +00:00
gcc-4.2.patch * Revert r10833, it doesn't really work. Instead build ghcboot 2008-02-22 14:43:00 +00:00
no-sys-dirs.patch * WTF. 2008-02-22 15:18:22 +00:00
setup-hook.sh * setup.sh: turn on nullglob globally. 2009-04-18 22:22:51 +00:00