Paulo Cavalcanti wrote:
> However, with this new default, a lot of programs will have
> to add just:
> 
> -lm
> 
> This seems to be completely unnecessary, because it comes from glibc:
> 
> [cascavel:~/RPMS124/lcgrpms] rpm -qf /lib64/libm.so.6
> glibc-2.11.1-1.x86_64

*nix has a long tradition of a separate libm for mathematical functions.

That said, while this may have made sense when CPUs didn't ship with on-die 
FPUs and it made sense to restrict general-purpose programs to basic integer 
operations, these days a lot of programs which aren't mathematical at all 
use functions from libm such as floor, so this separation looks pretty much 
obsolete (and in fact several other systems, such as Window$, don't 
implement it, and libm is either absent or a dummy to make -lm work).

        Kevin Kofler

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to