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.
http://ports.haiku-files.org/browser/haikuports/trunk/app-editors/joe/joe-3.5-haiku.diff
Charles J. Tabony
2008-08-29
Logged In: YES
user_id=887139
Originator: NO
Why don't Haiku and BeOS provide an empty libm.a file?
Joe Allen
2008-11-23
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.
Scott McCreary
2008-12-22
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.