Julien Pierre wrote:
David,

David Olliges wrote:

I'm trying to build 32bit mozilla on a 64 bit machine (FC3 on AMD64).
I'm using the -m32 flag for gcc to do this (see my .mozconfig below).
Configure runs fine, but then I get the following error:

It looks it's trying to build for x86_64 arch, which I don't want.  Has
anyone tried building 32 bit moz on a 64bit machine before?  Is there a
way to coax the build into an i386 build?  I'm not that familiar with
autoconf, so there may be an obvious answer here.

No, autoconf really gets in the way of the proper build.

I am very interested in a solution as well, but so far I don't know of one. There has been some disagreement on the issue.

I just filed the following bug about it :
https://bugzilla.mozilla.org/show_bug.cgi?id=297849

Also see :

https://bugzilla.mozilla.org/show_bug.cgi?id=290725

It's not so difficult. Just tell configure that you want a different build. Add --target=i686-pc-linux-gnu (or whatever the appropriate target type is) to the configure options to override the platform type that autoconf guesses. (You'll still need to specify CC="gcc -m32" and you may need it on the CPP invocation as well. It's not enough to only put it in CFLAGS.)

--
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support
_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to