[Nix-dev] How to make "gcc -static ..." work

Bjørn Forsman bjorn.forsman at gmail.com
Wed Oct 12 15:45:52 CEST 2016


On 12 October 2016 at 15:41, Nikolay Amiantov <ab at fmap.me> wrote:
> Try adding `glibc.static` to `buildInputs` (I'm not sure if `nix-shell
> -p` would do the same thing, but you can try it too).

Thank you very much! It worked:

$ nix-shell -p gcc glibc.static
$ gcc -static foo.c
(success)

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list