On Wed, Jan 19, 2011 at 8:08 PM, Nathan Craike <ncra...@gmail.com> wrote:
> Is it possible to build the 32-bit version on a 64-bit Mac? The Mac OS X man 
> page for gcc describes an "Apple only" option -arch:
>
>> -arch arch
>>            Compile for the specified target architecture arch.  The 
>> allowable values are
>>            i386, x86_64, ppc and ppc64.
>
>
> ...but same error occurs (the failing assertion) if I run the make script 
> with this option, as below:
>
>> ncraike@ncraikework 15:54:40 ~/Installs/nss-3.12.9/mozilla/security/nss
>> $ CC="gcc -arch i386" CXX="g++ -arch i386" make nss_build_all

The correct command is to pass CC and CXX (or rather, CCC, which is
the variable name used by NSS) to make as make variables as opposed to
environment variables:

$ make nss_build_all CC="gcc -arch i386" CCC="g++ -arch i386"

> If I set the USE_64 environment variable:
>
>> ncraike@ncraikework 16:00:09 ~/Installs/nss-3.12.9/mozilla/security/nss
>> $ USE_64=1 make nss_build_all

Similarly, this should be

$ make nss_build_all USE_64=1

although passing USE_64=1 as an environment variable also works.

Wan-Teh
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to