XL: Fix link flags for executables on Linux with XL compilers
Use "-Wl,-export-dynamic" with XL to match the "-rdynamic" flag used with GNU-like compilers.
This commit is contained in:
parent
4aa9c64511
commit
4729547a5b
|
@ -1 +1,2 @@
|
|||
set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj")
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-Wl,-export-dynamic")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-qmkshrobj")
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "-Wl,-export-dynamic")
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-qmkshrobj")
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-Wl,-export-dynamic")
|
||||
|
|
Loading…
Reference in New Issue