[Nix-dev] Re: [Nix-commits] SVN commit: nix - 17415 - simons - nixpkgs/trunk/pkgs/development/libraries/gtk-libs/2.16/glib

Peter Simons simons at cryp.to
Mon Sep 28 15:03:50 CEST 2009


Hi Ludovic,

 > Out of curiosity, why does nbd-server want to link statically against
 > Glib?

nbd-server is supposed to run on a remote machine that does not
necessarily use the same distribution, glibc version, etc as the client
machine. A statically linked binary can be copied over to that machine,
and it will work fine with a fairly high chance. A dynamically linked
binary, on the other hand, most likely doesn't work at all. At least
that was the experience I made while setting up nbd. The glib version on
the remote server is way older than the one from Nix. Linking nbd
statically solved those problems for me.

Take care
Peter




More information about the nix-dev mailing list