mcostalba/Stockfish — pull request #19 by jprostko (2012-07-30 05:04:43+00:00)
Title: Made some changes to allow building on Haiku without edits to the Makefile

I did this because I was using the chess GUI on Haiku called Puri, and wanted to compile a newer version of Stockfish for use with it. The most important part of this commit is to not link in pthreads in Haiku since it is part of the OS's libroot. If there was a configure file or the like, this could be handled using something like AC_SEARCH_LIBS. It looks like you want to keep things simple by using a straight-forward Makefile, so I made these changes with as little change to the Makefile as possible. These changes could be handled in other ways, naturally, but I figured this was the simplest way to accomplish the intended goals.

The changes...

* First change: If Haiku is host platform, change installation prefix to
/boot/common/bin
* Second change: Only link in pthreads if Haiku isn't host platform