opentibia / server

An open source server for the MMORPG Tibia.
GNU General Public License v2.0
416 stars 149 forks source link

Some CMake hints for making OTServ compile under FreeBSD #9

Closed stolendata closed 10 years ago

stolendata commented 12 years ago

CMake seems to think that the default INCLUDE_DIR for Boost is /usr/local/include, while in FreeBSD the pkg'd headers are actually stored in /usr/local/include/boost.

The BSD flavors and the various Linuxes keep some of their common functions in different places. libdl does not exist in FreeBSD, so the dynamic linker functions such as dlopen(), dlclose() etc. are kept inside libc, and ftime() is kept inside libcompat - instead of adding "dl" to SERVER_LIBRARIES, make it add "c compat".

GCC 4.2 / FreeBSD does not have the -static-libstdc++ option (but it does have -static-libgcc).