Issue #17730 has been reported by rickmark (Rick Mark).

----------------------------------------
Bug #17730: Ruby on macOS transitively links to ~150 dylibs
https://bugs.ruby-lang.org/issues/17730

* Author: rickmark (Rick Mark)
* Status: Open
* Priority: Normal
* ruby -v: 3.0.0
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
By using `-framework Security` and `-framework Foundation` Ruby 3 pulls in about 150 dylibs when compiled for macOS

By using CoreCrypto / CoreFoundation I was able to reduce this to ~50.  This greatly reduces Ruby's surface area and dependencies on macOS.  Further CoreFoundation is only used for one call in the entire codebase of `CFStringNormalize(m, kCFStringNormalizationFormC);` - if we can replace this, Ruby could work with only `libSystem` and `libgmp`.

---Files--------------------------------
ruby_deps_after.txt (2.24 KB)
ruby_deps_before.txt (9.81 KB)
0001-Remove-unneeded-dependencies-on-macOS.patch (2.36 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>