public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* How do you configure & build gcc on biarch?
@ 2002-10-23  5:38 Christian Jönsson
  0 siblings, 0 replies; only message in thread
From: Christian Jönsson @ 2002-10-23  5:38 UTC (permalink / raw)
  To: gcc

Hej.

I would like to understand better how you configure for example
sparc64-linux targets?

The issue is the biarch and the -m64 versus -m32 switch.

Now, I would expect to build the compiler with essentially -m64 added
generally. However, a 32 bit version of some ilbs are also creared
during the build of the compiler suite.

So, firstly, the bootstrap of the compilers themselves,

export BOOT_CFLAGS="-g -O2 -m64"

but that is't propagated to non-C source codeded parts of compilers,
eg., Ada, right?

Secondly, the libs are not built using that BOOT_CFLAGS, and even some
C source coded libs shouldn't, the 32 bit ones. And what about the
non-C source coded ones?

So, a bit confused here...

This is how I do it so far:

$ export BOOT_CFLAGS="-g -O2 -m64"
$ env LD_LIBRARY_PATH=/usr/lib64 \
/usr/local/src/gcc-binutils/trunk/gcc/configure sparc64-linux \
--prefix=/usr/local/gcc-binutils \
--enable-shared --enable-threads=posix
$ make bootstrap-lean


I'd like at hear ideas of how to do the right thing(tm), and why the
specifics in suggestions are the right thing.

Cheers,

/ChJ

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-23  7:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-23  5:38 How do you configure & build gcc on biarch? Christian Jönsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).