Skip to content

Linux-PGI: Prevent -rdynamic ending up in flags

Christian Pfeiffer requested to merge ChrisTX/cmake:pgi-rdynamic-fix into master

Ensure that PGI on Linux keeps its CMAKE_SHARED_LIBRARY_LINK_<LANG>_FLAGS empty, especially of -rdynamic.

In CMakeFortranInformation a lot of flags will be copied from their C equivalents if they're not defined. By using a combination of GCC and PGFortran, this will lead to -rdynamic ending up in the PGI flags and none of the PGI compilers understand that flag, crashing with a fatal error.

Merge request reports

Loading