Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
This patch moves the -lm to M_LIBS, to then allow building on systems that have their math library built in, such as Haiku and BeOS.
Charles J. Tabony
Logged In: YES
Why don't Haiku and BeOS provide an empty libm.a file?
Now in CVS: I've eliminated -lm. Instead, I use AC_SEARCH_LIBS to try to find each math function: this should automatically add -lm if it's needed. Please try this on Haiku / BeOS.
I could very well still be broken: maybe AC_SEARCH_LIBS will add -lc? If the function is intrinsic I don't know what it will do. I also check for macro definition of these functions in math.h.
I just build the cvs version of JOE on Haiku and the -lm issue is indeed fixed, also it didn't complain about any -lc so as far as Haiku is concerned it's fine.