Re: [RFC] Difference between gcc and g++ drivers

2015-06-24 Thread Joseph Myers
On Wed, 24 Jun 2015, Andrew Senkevich wrote: > Can anybody tell something about this difference in drivers? libstdc++ uses libm - that's probably why g++ links it in by default. Modern good practice would say that it should only be linked directly into a program (should only end up listed in DT

Re: [RFC] Difference between gcc and g++ drivers

2015-06-24 Thread Andrew Haley
On 06/24/2015 03:12 PM, Andrew Senkevich wrote: > Can anybody tell something about this difference in drivers? It's a UNIX tradition to require -lm for the floating-point library in C programs. It doesn't make much sense now, but it's hard to change it. Andrew.

[RFC] Difference between gcc and g++ drivers

2015-06-24 Thread Andrew Senkevich
Hi, Glibc 2.22 will have libm.so implemented as linker script helping to link as needed against vector math library libmvec.so without addition of -lmvec (for not static builds). Another words -lm is enough to link against libmvec.so. But g++ driver inserts -lm for linker command, gcc griver not.