I'm trying to package that benefits significantly from link time
optimization (-flto).  But I can't get this to work.  On non-Nix linux
platforms the current trick is to substitute gcc-ar for ar, gcc-ranlib for
ranlib.

I don't see how to do this in my nix expression.  The gcc-ar binary is
there:

   /nix/store/l8y2srrkp5fflwph7vq0gllj1k1ai17w-gcc-5.3.0/bin/gcc-ar

But I don't know (1) how to refer to it rather than gcc-wrappers, and (2)
whether that is a horrible idea to start with.

Is there some better way to get -flto working under nix?

Thanks,
 -Ryan
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to