[CMake] cmake FortranCInterface test fails in a linking step due to the -rdynamic option in Linux-GNU.cmake
Brad King
brad.king at kitware.com
Sun Jan 11 14:58:11 EST 2015
On 1/8/2015 1:30 PM, Brad King wrote:
> The Linux-GNU module's behavior should not be getting invoked
> for XL Fortran because the Fortran compiler id is "XL", not "GNU".
>
> I'd like to understand how the option makes it to the link line:
To follow up on-list, it turns out that CMakeFortranInformation.cmake
was initializing the CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS value
from the C version since no platform modules set it explicitly for
XL Fortran. The fix is:
XL: Fix link flags for executables on Linux with XL compilers
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4729547a
-Brad
More information about the CMake
mailing list