<div dir="ltr"><div>I added -lm in LDFLAGS in my custom bsps/arm/tms570/config/xxx.cfg</div><div><br></div><div>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</div><div><br></div><div>Why is it?</div><div><br></div><div>Thanks<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 22, 2022 at 1:43 PM Y. HB <<a href="mailto:sprhawk@gmail.com">sprhawk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello</div><div><br></div><div>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?</div><div><br></div><div>Shall I add LDFLAGS="-lm" during configure or shall I change some variables in c/src/lib/libbsp/arm/xxxx/Makefile.am?</div><div><br></div><div>Thanks<br></div></div>
</blockquote></div>