Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Changes between Version 6 and Version 7 of BuildingWinNSS


Ignore:
Timestamp:
Feb 28, 2010, 8:10:40 PM (14 years ago)
Author:
bviktor
Comment:

remove vc++ reference, add patch for nss

Legend:

Unmodified
Added
Removed
Modified
  • BuildingWinNSS

    v6 v7  
    2020
    2121  Download a recent build of the [https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/sezero_20100223/mingw-w32-bin_i686-mingw_20100223_sezero.zip/download MinGW-w64 w32 toolchain]. Extract it to `c:\mozilla-build\msys` so that MSYS and MinGW have the same folder hiearchy (e.g. MinGW binaries go to `c:\mozilla-build\msys\bin` etc.).
    22 
    23  4. Get Visual C++ Express
    24 
    25   Download [http://www.microsoft.com/downloads/details.aspx?FamilyId=F3FBB04E-92C2-4701-B4BA-92E26E408569&displaylang=en#filelist Visual C++ 2008 Express Edition SP1] (`vcsetup.exe`). Visual C++ is required because of cl and possibly other tools, but you won't build NSS from within Visual Studio. Install it without SQL Server (you can install it, but it's not required for building NSS).
    26 
    27 == Start build environment ==
    28 
    29  1. Run Visual Studio 2008 Command Prompt from Start Menu.
    30 
    31  2. Go to `nss-3.12.5-with-nspr-4.8.2\mozilla\security\nss`.
    3222
    3323== Choose build flavour ==
     
    10393More info about the build variables can be found on the [https://developer.mozilla.org/en/NSS_reference/Building_and_installing_NSS/Build_instructions Build instructions] page of the Mozilla Developer Central.
    10494
     95== Patch NSS ==
     96
     97There's an error which prevents NSS from building with GCC. Apply the following patch to `nss-3.12.5-with-nspr-4.8.2\mozilla\security\nss\lib\freebl\config.mk`:
     98
     99{{{
     100--- config.mk.orig      2009-04-12 00:18:42 +0200
     101+++ config.mk   2010-02-28 20:19:08 +0100
     102@@ -85,8 +85,10 @@
     103 RESNAME = freebl.rc
     104 
     105 ifndef WINCE
     106+ifndef NS_USE_GCC
     107 OS_LIBS += shell32.lib
     108 endif
     109+endif
     110 
     111 ifdef NS_USE_GCC
     112 EXTRA_SHARED_LIBS += \
     113}}}
     114
    105115== Build NSS ==
    106116
    107 Enter
     117Start command prompt and go to `nss-3.12.5-with-nspr-4.8.2\mozilla\security\nss`.
    108118
    109119{{{
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!