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

Lluís Batlle viriketo at gmail.com
Fri Sep 25 18:11:51 CEST 2009


There is the stdenv.mkDerivation attribute "dontDisableStatic=true ",
which the generic stdenv setup understands.

Regards,
Lluís

2009/9/25, Ludovic Courtès <ludo at gnu.org>:
> Hello,
>
>  Peter Simons <simons at cryp.to> writes:
>
>  > +  # TODO: The setup script adds --disable-static to ./configure by
>  > +  # default. The nbd-server, however, would like to link this library
>  > +  # statically (so that nbd-server can itself be a static binary). I
>  > +  # have no clue how to solve it properly, but a solution that would
>  > +  # work is this one:
>  > +  #
>  > +  # configureFlags = "--enable-static";
>  > +  #
>  > +  # There has to be a better way?
>
>  That seems OK to me.  The reason for adding ‘--disable-static’ by
>  default is that it seems to be a good default in the majority of cases.
>  When it’s not desirable, feel free to override it, e.g., by using
>  ‘--enable-static --enable-shared’.
>
>  Out of curiosity, why does nbd-server want to link statically against
>  Glib?
>
>  Thanks,
>  Ludo’.
>  _______________________________________________
>  nix-dev mailing list
>  nix-dev at cs.uu.nl
>  https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>



More information about the nix-dev mailing list