[Nix-dev] statically linking gcc in Nix fails

Eelco Dolstra eelco at cs.uu.nl
Fri Oct 22 16:56:06 CEST 2004


Hi Armijn,

On Fri, 22 Oct 2004 16:17:11 +0200
Armijn Hemel <armijn at uulug.nl> wrote:

> I'm trying to compile gcc statically in Nix. I adapted the default.nix
> and builder.sh from the default gcc-3.4.2 in nixpkgs, but I get the
> following error:
> 
> impure path `/usr/lib/crti.o' used in link

When do you get this error?  The compiler locates crti.o using the search
path set through the -B option.  For instance,
pkgs/build-support/gcc-wrapper/builder.sh adds `-B$glibc/lib' to the
compiler flags.  Is that being passed?

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco



More information about the nix-dev mailing list