Closed seanm closed 3 years ago
Looks like LLD (LLVM Linker) on macOS (maybe on all platforms) does not support these options. Suitable replacements seem:
-Wl,-undefined,error
-Wl,-exported_symbols_list,${PROJECT_SOURCE_DIR}/src/matio.sym
The second one does cause a new problem, it expects all definitions in matio.sym
to start with an _
. GNU linker seems to handle this without problem, so I think it is fine to add them. Otherwise a second .sym
file could be used.
I'll create a PR to fix this in the CMake build system.
results in:
No such problem when using
MATIO_SHARED=OFF
.This is with Xcode 11.3.1 on macOS 10.14.