Math lib inclusion in BSP

sudarshan.rajagopalan sudarshan.rajagopalan at vecna.com
Fri Sep 25 16:23:48 UTC 2015


On 2015-09-25 01:33, Sebastian Huber wrote:
> On 24/09/15 21:49, sudarshan.rajagopalan wrote:
>> 
>> We are developing a new BSP that uses math.h in few of the BSP files. 
>> I do understand that the math library functions are not part of 
>> standard C library and has to be linked using "-lm". So I include 
>> "LD_LIBS  += -lm" in the custom .cgf config file but this doesn't seem 
>> to work. I think this has to be linked in a proper order. Could 
>> someone help with this?
> 
> This seems to be a candidate for a FAQ:
> 
> https://lists.rtems.org/pipermail/devel/2014-October/008322.html
> 
> This patch would solve the problem:
> 
> https://lists.rtems.org/pipermail/devel/2014-September/008191.html

Is the above patch committed to the master? I applied the above patch to 
the "bsp_specs" file specific to the BSP processor and it worked, but 
couldn't find the gcc/config/rtems.h
  file mentioned. Is the file moved or changed?




More information about the devel mailing list