[mlpack-git] master: Add -rdynamic if BFD or DL found. (6c4eb24)

gitdub at mlpack.org gitdub at mlpack.org
Thu Mar 3 15:36:12 EST 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/fd84f3a2e53592d723a8e8a76dadb8aa76820913...1a9c41a86be1fa1dcc5c3b90dd959c2255c3bb8e

>---------------------------------------------------------------

commit 6c4eb24cd927d6cea7920ab652815f03c275b46e
Author: Grzegorz Krajewski <krajekg at gmail.com>
Date:   Thu Mar 3 21:36:12 2016 +0100

    Add -rdynamic if BFD or DL found.


>---------------------------------------------------------------

6c4eb24cd927d6cea7920ab652815f03c275b46e
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1e43fd..68fe7ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,6 +71,7 @@ if(DEBUG)
   find_package(Bfd)
   find_package(LibDL)
   if(LIBBFD_FOUND AND LIBDL_FOUND)
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -rdynamic")
     include_directories(${LIBBFD_INCLUDE_DIRS})
     include_directories(${LIBDL_INCLUDE_DIRS})
     add_definitions(-DHAS_BFD_DL)




More information about the mlpack-git mailing list