From: Martin Quinson Date: Thu, 31 May 2018 09:17:08 +0000 (+0200) Subject: stop checking for HAVE_GNU_LD now that we don't use the result X-Git-Tag: v3.20~182 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/888191381c0597924ca187ce08a36b10f1012dda?ds=sidebyside stop checking for HAVE_GNU_LD now that we don't use the result The detection sometimes breaks (eg on MacOSX), and the result of this check is not used since 2014. See commit a79b8df1d7ee2bb82aa46cdd42cd8ae344d0f32e for why the result is not used anymore. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3733e2bd18..f45dca95b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -428,38 +428,6 @@ else() SET(HAVE_SMPI 0) endif() -#-------------------------------------------------------------------------------------------------- -### Check for GNU dynamic linker -CHECK_INCLUDE_FILE("dlfcn.h" HAVE_DLFCN_H) -if (HAVE_DLFCN_H) - execute_process(COMMAND ${CMAKE_C_COMPILER} ${CMAKE_HOME_DIRECTORY}/tools/cmake/test_prog/prog_gnu_dynlinker.c ${DL_LIBRARY} -o test_gnu_ld - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - OUTPUT_VARIABLE HAVE_GNU_LD_compil - ) - if(HAVE_GNU_LD_compil) - set(HAVE_GNU_LD 0) - message(STATUS "Warning: test program toward GNU ld failed to compile:") - message(STATUS "${HAVE_GNU_LD_comp_output}") - else() - execute_process(COMMAND ./test_gnu_ld - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - RESULT_VARIABLE HAVE_GNU_LD_run - OUTPUT_VARIABLE var_exec - ) - - if(NOT HAVE_GNU_LD_run) - set(HAVE_GNU_LD 1) - message(STATUS "We are using GNU dynamic linker") - else() - set(HAVE_GNU_LD 0) - message(STATUS "Warning: error while checking for GNU ld:") - message(STATUS "Test output: '${var_exec}'") - message(STATUS "Exit status: ${HAVE_GNU_LD_run}") - endif() - file(REMOVE test_gnu_ld) - endif() -endif() - #-------------------------------------------------------------------------------------------------- ### Initialize of CONTEXT THREADS diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index 8d65b90e60..b6af7e7f1b 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -68,7 +68,7 @@ if(HAVE_GRAPHVIZ) endif() endif() -if(SIMGRID_HAVE_MC AND HAVE_GNU_LD AND NOT ${DL_LIBRARY} STREQUAL "") +if(SIMGRID_HAVE_MC AND NOT ${DL_LIBRARY} STREQUAL "") SET(SIMGRID_DEP "${SIMGRID_DEP} ${DL_LIBRARY}") endif()