How can I add LDFLAGS for bsp build?

Y. HB sprhawk at gmail.com
Fri Jul 22 06:11:38 UTC 2022


I added -lm in LDFLAGS in my custom bsps/arm/tms570/config/xxx.cfg

the flag is added to compiling arguments, but it still reported undefined
reference to 'floor', but I see there is floor symbols in the
arm-rtems5/lib/libm.a

Why is it?

Thanks

On Fri, Jul 22, 2022 at 1:43 PM Y. HB <sprhawk at gmail.com> wrote:

> Hello
>
> I'm working on a custom tms570 bsp upon RTEMS 5.1, but it depends on math
> lib (-lm), how can I add this flag to the bsp build?
>
> Shall I add LDFLAGS="-lm" during configure or shall I change some
> variables in c/src/lib/libbsp/arm/xxxx/Makefile.am?
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20220722/0a7b7886/attachment.htm>


More information about the users mailing list