hadoop-common-project/hadoop-common/src/JNIFlags.cmake sets the CMAKE_LD_FLAGS variable to the flags required for the linker. However, despite the name, CMAKE_LD_FLAGS is *not* a valid standard CMake variable, at least according to http://www.cmake.org/cmake/help/v3.0/manual/cmake-variables.7.html it isn't. I can't find any reference to CMAKE_LD_FLAGS in any of the standard CMake modules, so as far as I can tell the assignment in hadoop-common-project/hadoop-common/src/JNIFlags.cmake to CMAKE_LD_FLAGS isn't actually doing anything. I believe the correct variables are CMAKE_EXE_LINKER_FLAGS, CMAKE_SHARED_LINKER_FLAGS and CMAKE_STATIC_LINKER_FLAGS. However it's entirely possible I may be misunderstanding, does anyone know why CMAKE_LD_FLAGS has been used?

--
Alan Burlison
--

Reply via email to