Skip to content

Commit

Permalink
fix: Reexport symbols from CoreServices framework.
Browse files Browse the repository at this point in the history
Some libraries expect special symbols forwarded to CoreServices, else dlopen will fail.
  • Loading branch information
trungnt2910 committed Nov 15, 2021
1 parent 30b39cc commit a1338a4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frameworks/CoreServices/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,7 @@ reexport(CoreServices SearchKit ${SearchKit_BUILD})
reexport(CoreServices SharedFileList ${SharedFileList_BUILD})
reexport(CoreServices OSServices ${OSServices_BUILD})

set_property(TARGET CoreServices APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,-reexported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/reexport.exp")

install(FILES SystemVersion.plist DESTINATION "libexec/darling/System/Library/CoreServices")
32 changes: 32 additions & 0 deletions src/frameworks/CoreServices/reexport.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
__FE_DFL_DISABLE_SSE_DENORMS_ENV
__FE_DFL_ENV
___inf
_exp2
_exp2$fenv_access_off
_fdim
_fdim$fenv_access_off
_feclearexcept
_fegetenv
_fegetexcept
_fegetround
_feholdexcept
_feraiseexcept
_fesetenv
_fesetexcept
_fesetround
_fetestexcept
_feupdateenv
_fmax
_fmax$fenv_access_off
_fmin
_fmin$fenv_access_off
_log2
_log2$fenv_access_off
_modff
_modff$fenv_access_off
_nan
_nanf
_nextafterd
_nextafterf
_remquo
_remquo$fenv_access_off

0 comments on commit a1338a4

Please sign in to comment.