As someone may be interested in a static lib compiled without -fPIC,
I'd prefer to set a boolean variable per package, with a default of
-fPIC enabled. I think the 'global change' people mentioned here
involves using NIX_CFLAGS_COMPILE, isn't it?

This way, people will be able to write his own expressions disabling
-fPIC. What do you think? Then each package with that parameter
enabled could manage to use -fPIC in the best way, maybe only for
library code, and not for the programs code.

(I need -fPIC on the perl package for pidgin to link, too)

2009/3/10 Ludovic Courtès <l...@gnu.org>:
> Hello,
>
> Eelco Dolstra <e.dols...@tudelft.nl>
> writes:
>
>> Turning on -fPIC by default would at least fix a bunch of packages on
>> x86_64-linux that forget to pass -fPIC for shared library builds.
>
> I'd rather fix packages individually than add such a kludge globally.
>
> Thanks,
> Ludo'.
>
> _______________________________________________
> nix-dev mailing list
> nix-dev@cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
nix-dev@cs.uu.nl
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to