enable "undefined dynamic-lookup"

This commit is contained in:
lorenz 2018-12-11 14:27:36 +01:00 committed by GitHub
parent 14416417e8
commit a18cce4d02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,9 +224,9 @@ else(WIN32)
# build shared libraries
set(NG_LIB_TYPE SHARED)
endif(WIN32)
if(APPLE AND NOT BUILD_WITH_CONDA)
if(APPLE)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup")
endif(APPLE AND NOT BUILD_WITH_CONDA)
endif(APPLE)
#######################################################################
if(NOT ZLIB_INCLUDE_DIRS)