Re: RFC: Bug 60749 - Do not need to link against -lm for fabs*()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Am 14.09.2013 14:05, schrieb walter harms:
> 
> 
> Am 13.09.2013 20:20, schrieb Michael Kerrisk (man-pages):
>> Walter,
>>
>> On Fri, Sep 13, 2013 at 6:46 PM, walter harms <wharms@xxxxxx> wrote:
>>> hi list,
>>> i was investigating this and the good news it that you still need a libm.
>>> On the other side the reporter is right he does not need to specify that.
>>> Obviously this depends on the linker script used.
>>>
>>> The math man pages say: "Link with -lm".
>>> Perhaps it is better to say 'You may need to Link with -lm".
>>>
>>> any comments on that ?
>>
>>
>> Thanks for looking at this bug. Could you elaborate a little more on
>> what it/sin't in the linker script that makes the difference?
>>
> 
> I have no clue what linker magic is needed.
> 
I know what it going on. the is no linker magic required.
The point is gcc build-ins. Some functions are replaced with
build-ins. That happens e.g. with fabs() what the original poster noted.
Disabling the build-ins with gcc -fno-builtin shows that the -lm is still
a requirement.

next problem, who will do the bugzilla-entry ?

re,
 wh


--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux