Skip to content

Commit

Permalink
Fix _kSecAttrAccess not being exported
Browse files Browse the repository at this point in the history
The issue is that the exported symbols list from Apple is
preprocessed. For whatever reason, it isn't being properly
preprocessed. The solution was to join the #included
ones together manually and get rid of the #if, etc.
The result of this is SEC_MANUAL.exp.

darlinghq/darling#445
  • Loading branch information
Andrew Hyatt committed Jan 6, 2019
1 parent 0db0ace commit 976379d
Show file tree
Hide file tree
Showing 2 changed files with 3,321 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OSX/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ add_framework(Security
utilities
)

set_property(TARGET Security APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-dead_strip -Wl,-undefined,dynamic_lookup -exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/../Security.exp-in")
set_property(TARGET Security APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-dead_strip -Wl,-undefined,dynamic_lookup -exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/../SEC_MANUAL.exp")
Loading

0 comments on commit 976379d

Please sign in to comment.