Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#220 Patch to fix -lm when trying to build Joe on Haiku

open
nobody
None
5
2008-08-28
2008-08-28
Scott McCreary
No

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

Discussion

  • Logged In: YES
    user_id=887139
    Originator: NO

    Why don't Haiku and BeOS provide an empty libm.a file?

     
  • Joe Allen
    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
    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.