This will add a dependency to libm.so to all libraries that are built so rather than do that you should just add 'm' to a CUSTOM_DYNAMIC_LIBS setting in the Makefile.revxml. e.g.
CUSTOM_DYNAMIC_LIBS=m