Re: Using MSVC as a cross compiler

2007-03-09 Thread Nelson Bolyard
Wan-Teh Chang wrote: >> I can point you to the relevant Mozilla makefile: >> http://lxr.mozilla.org/security/source/security/manager/Makefile.in#199 >> >> You'll see that the Mozilla developers override these make variables >> used by the NSS coreconf build system when cross-compiling NSS: >> >>

Re: Using MSVC as a cross compiler

2007-03-09 Thread Wan-Teh Chang
Neil wrote: Wan-Teh Chang wrote: You'll see that the Mozilla developers override these make variables used by the NSS coreconf build system when cross-compiling NSS: 199 ifdef CROSS_COMPILE 200 DEFAULT_GMAKE_FLAGS += \ 201 NSINSTALL="$(NSINSTALL)" \ 202 NATIVE_CC="$(HOST_CC)"

Re: Using MSVC as a cross compiler

2007-03-09 Thread Neil
Wan-Teh Chang wrote: You'll see that the Mozilla developers override these make variables used by the NSS coreconf build system when cross-compiling NSS: 199 ifdef CROSS_COMPILE 200 DEFAULT_GMAKE_FLAGS += \ 201 NSINSTALL="$(NSINSTALL)" \ 202 NATIVE_CC="$(HOST_CC)" \ 203

Re: Using MSVC as a cross compiler

2007-03-09 Thread Neil
Wan-Teh Chang wrote: NSS uses LD on Unix (including Linux and Mac OS X), and LINK on Windows, to refer to the linker. It also uses $LINK_DLL on Windows and $MKSHLIB everywhere else. How inconsistent :-( -- Warning: May contain traces of nuts. ___

Re: Using MSVC as a cross compiler

2007-03-08 Thread Wan-Teh Chang
Neil wrote: Nelson Bolyard wrote: In the usual places where NSS documentation is found. Here's a helpful google search. I couldn't find any reference to cross-compilation

Re: Using MSVC as a cross compiler

2007-03-08 Thread Wan-Teh Chang
Neil wrote: Wan-Teh Chang wrote: You'll see that the Mozilla developers override these make variables used by the NSS coreconf build system when cross-compiling NSS: 199 ifdef CROSS_COMPILE 200 DEFAULT_GMAKE_FLAGS += \ 201 NSINSTALL="$(NSINSTALL)" \ 202 NATIVE_CC="$(HOST_CC)"

Re: Using MSVC as a cross compiler

2007-03-08 Thread Neil
Nelson Bolyard wrote: Neil wrote: Nelson B wrote: I suggest that you first try to get NSS to build for you in its stand-alone configuration, using only NSS's makefiles and not any of the other mozilla products' makefiles. Where would this be documented, with specific reference to

Re: Using MSVC as a cross compiler

2007-03-08 Thread Neil
Wan-Teh Chang wrote: None of the NSS developers cross-compiles NSS. (The closest thing we do to cross-compilation is to build the Windows CE binaries on Windows 2000/XP.) So we're not familiar with how the Mozilla developers cross-compile NSS. I don't think many Mozilla developers cross-co

Re: Using MSVC as a cross compiler

2007-03-07 Thread Wan-Teh Chang
Neil, None of the NSS developers cross-compiles NSS. (The closest thing we do to cross-compilation is to build the Windows CE binaries on Windows 2000/XP.) So we're not familiar with how the Mozilla developers cross-compile NSS. I can point you to the relevant Mozilla makefile: http://lxr.mozi

Re: Using MSVC as a cross compiler

2007-03-07 Thread Nelson Bolyard
Neil wrote: > Nelson B wrote: > >> I suggest that you first try to get NSS to build for you in its >> stand-alone configuration, using only NSS's makefiles and not any of >> the other mozilla products' makefiles. > > Where would this be documented, with specific reference to cross > compilation?

Re: Using MSVC as a cross compiler

2007-03-07 Thread Nelson B
Neil wrote: > Myself using Interix and "Mook" using Wine have both tried to > cross-compile Mozilla using MSVC as a cross compiler. Generally I would > like to think that NSS has been the easiest part to cross compile, but > here are the issues we ran into: > >

Re: Using MSVC as a cross compiler

2007-03-07 Thread Neil
Nelson B wrote: I suggest that you first try to get NSS to build for you in its stand-alone configuration, using only NSS's makefiles and not any of the other mozilla products' makefiles. Where would this be documented, with specific reference to cross compilation? -- Warning: May contain

Using MSVC as a cross compiler

2007-03-03 Thread Neil
Myself using Interix and "Mook" using Wine have both tried to cross-compile Mozilla using MSVC as a cross compiler. Generally I would like to think that NSS has been the easiest part to cross compile, but here are the issues we ran into: 1. Because we're not using GCC or