On 12 October 2016 at 15:30, Игорь Пашев <pashev.i...@gmail.com> wrote:
> It requires libc.a Maybe you have to add glibc into the environment.

Doh! Right... I thought libc was bundled with gcc, but of course, it's
in _glibc_.

Unfortunately, no celebration yet:

$ nix-shell -p gcc glibc
these paths will be fetched (9.83 MiB download, 19.98 MiB unpacked):
fetching path ‘/nix/store/ia4g72xxpmnn9qj1v95af03ynll5addc-glibc-2.24-debug’...
fetching path ‘/nix/store/wjzk9517pm6xl0pprdralf11hmxf4vkv-glibc-2.24-static’...

So I can see it pulling in glibc-2.24-static, which contains libc.a
(checked). Promising, but still:

$ gcc -static foo.c
cannot find -lc
collect2: error: ld returned 1 exit status

Best regards,
Bjørn Forsman
nix-dev mailing list

Reply via email to