From 1725125d76ce5305eaab540c5012beb69df1d60e Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Wed, 28 Oct 2015 13:57:24 +0100 Subject: [PATCH] Link libdl --- CMakeLists.txt | 1 + python/_project.pyx | 1 - sample/CMakeLists.txt | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c9e42f..28e855d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,7 @@ ENDIF(YORICK_SUPPORT) find_program(CYTHON cython) find_library(ZLIB z) +find_library(DL_LIBRARY dl) set(NETCDF_FIND_REQUIRED ${YORICK_SUPPORT}) set(GSL_FIND_REQUIRED TRUE) diff --git a/python/_project.pyx b/python/_project.pyx index 47c7091..9c52e99 100644 --- a/python/_project.pyx +++ b/python/_project.pyx @@ -744,7 +744,6 @@ cdef DTYPE_t C_line_of_sight_projection(DTYPE_t[:,:,:] density, jumper[0] = 0 dist2 = 0 while completed == 0: - I0 += integrator(density, u, u0, u_delta, iu0, jumper, max_distance-sqrt(dist2)) if u[jumper[0]] < 0: diff --git a/sample/CMakeLists.txt b/sample/CMakeLists.txt index fcab51a..62fb775 100644 --- a/sample/CMakeLists.txt +++ b/sample/CMakeLists.txt @@ -1,4 +1,4 @@ -SET(tolink ${GSL_LIBRARIES} ${CosmoTool_local} ${CosmoTool_LIBS}) +SET(tolink ${GSL_LIBRARIES} ${CosmoTool_local} ${CosmoTool_LIBS} ${DL_LIBRARY}) include_directories(${CMAKE_SOURCE_DIR}/src) include_directories(${FFTW3_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS} ${GSL_INCLUDE_PATH}) if(YORICK_SUPPORT)