Last active
December 6, 2022 10:29
-
-
Save idiom/5716494 to your computer and use it in GitHub Desktop.
Building Mozilla NSS (Network Security Services) on Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download & Install Visual Studio 2010 - Version able to compile C++ | |
2. Download and Install Mozilla build files http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe | |
3. Download the latest NSS package from: http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/ | |
Download the tar with npsr | |
4. Create a directory C:\src | |
5. Extract nss to c:\src | |
So this will end up looking like c:\src\nss-3.15 | |
6. Run the Mozilla build shell: C:\mozilla-build\start-msvc10.bat | |
7. Create the required env variables | |
Type: export OS_TARGET="WINNT" | |
Type: export BUILD_OPT="1" | |
Type: export HOME="/c/src" (or whatever directory you created above) | |
8. cd ~ (should bring you into your home directory) | |
9. Now cd into the nss-3.5\nss | |
10. type: ls (you should see the file Makefile) | |
11. type make nss_build_all | |
This will take a few minutes to build. Go make a coffee | |
Once it's done you will have a directory dist in the root nss directory c:\src\nss-3.15\dist | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment