Add -no_weak_exports

This commit is contained in:
Andrew Noyes 2020-02-18 10:49:43 -08:00
parent e1f279ac98
commit 40c9e2f3d8
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ if(APPLE)
COMMENT "Generate exported_symbols_list")
add_custom_target(exported_symbols_list DEPENDS ${symbols})
add_dependencies(fdb_c exported_symbols_list)
target_link_options(fdb_c PRIVATE "LINKER:-exported_symbols_list,${symbols}")
target_link_options(fdb_c PRIVATE "LINKER:-no_weak_exports,-exported_symbols_list,${symbols}")
elseif(WIN32)
else()
target_link_options(fdb_c PRIVATE "LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/fdb_c.map,-z,nodelete")