[mlpack-git] [mlpack] Link against lexecinfo on FreeBSD (#423)

Marcus Edel notifications at github.com
Fri Mar 20 14:32:41 EDT 2015


The build on FreeBSD results with the error: `"undefined reference to 'backtrace_symbols'"`. We need to link against `-lexecinfo` at least on 10.0 and 10.1 to get it working.

We can fix the problem with:

```
if(CMAKE_SYSTEM_NAME MATCHES "BSD")
  find_library(execinfo execinfo "/usr/local/lib" "/usr/lib")
  target_link_libraries(mlpack ${execinfo})
endif(CMAKE_SYSTEM_NAME MATCHES "BSD")
```


I'm not an CMake expert so maybe there is better solution or a better place to fix the issue.

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/423
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150320/2a69c4ac/attachment.html>


More information about the mlpack-git mailing list