mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2026-10-11 11:56:33 +00:00
Add support for linking NSS statically on macOS
This is an attmept to link with NSS statically on macOS (both Intel and
Apple M1).
Statically linking with NSS is a total mess and completely
undocumented. There are 20+ .a files to link with, and their linking
order matters. The main reference for this commit is a Mozilla Rust code
responsible for statically linking NSS:
https://github.com/mozilla/application-services/blob/b2690fd2e4cc3e8e10b6868ab0de8b79c89d3a93/components/support/rc_crypto/nss/nss_b uild_common/src/lib.rs#L94
Unfortunately, even with that in hand, a lot of hacking is needed to
make it all work.
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ Install dependencies for building all the components:
|
||||
```
|
||||
sudo apt install build-essential pkg-config cmake ninja-build curl autoconf automake libtool
|
||||
# For the Firefox version only
|
||||
sudo apt install python3-pip python-is-python3
|
||||
sudo apt install python3-pip
|
||||
pip install gyp-next
|
||||
export PATH="$PATH:~/.local/bin" # Add gyp to PATH
|
||||
# For the Chrome version only
|
||||
|
||||
Reference in New Issue
Block a user