mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-01 16:28:09 +08:00
add linking flag to cmake, does not fix the issue, still disabled shared with fortran
This commit is contained in:
parent
69ccaee00a
commit
57ab1e7d69
@ -851,6 +851,11 @@ if (EXISTS "${HDF5_SOURCE_DIR}/fortran" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/for
|
||||
option (SKIP_HDF5_FORTRAN_SHARED "Do not build the fortran shared libraries" OFF)
|
||||
if (HDF5_BUILD_FORTRAN)
|
||||
if (BUILD_SHARED_LIBS AND APPLE)
|
||||
# Tell cmake to do the right thing with COMMON symbols, this fixes
|
||||
# corrupt values with COMMON and EQUIVALENCE when building shared
|
||||
# Fortran libraries on OSX with gnu and Intel compilers (HDFFV-2772).
|
||||
# *** NOTE: Fix does not work with Cmake. ***
|
||||
# set (HDF5_LINKER_FLAGS "-Wl,-commons,use_dylibs")
|
||||
if (NOT ALLOW_UNSUPPORTED)
|
||||
message (STATUS " **** Shared FORTRAN libraries are unsupported **** ")
|
||||
set (SKIP_HDF5_FORTRAN_SHARED ON)
|
||||
|
Loading…
Reference in New Issue
Block a user