Jan Engelhardt a écrit :
On Tuesday 2009-12-22 14:58, BERTRAND Joel wrote:
Jan Engelhardt a écrit :
Hi,
When gcc is ./configured with -mcpu=ultrasparc, it emits -m64 objects by
default, when it's with -mcpu=v8, it emits V8 -m32 objects. How would
one configure it to emit V9 -m32 by default?
I use -mv8plus or -mtune=niagara -mcpu=niagara and gcc creates 32 bits
objects.
Oops. It should have read:
./configure --with-cpu=ultrasparc
Not -mcpu or -mtune.
I use this options and I obtain by default :
tchaikovski:[/usr/local/lib] > file libSDL.so
libSDL.so: ELF 32 bits MSB bibliothèque dynamique SPARC32PLUS
Version 1, V8+ requis, avec liens dynamiques, fichier intégral
on a T1000 server running Solaris. For information :
tchaikovski:[/usr/local/lib] > gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.4.1/configure --prefix=/usr/shared-apps
--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
--enable-nls --enable-checking=release --with-mpfr=/usr/shared-apps/
--with-gnu-ld --enable-bootstrap
Thread model: posix
gcc version 4.4.1 (GCC)
tchaikovski:[/usr/local/lib] >
This compiler can build 32 and 64 bits objects with -m32 and -m64 options.
Regards,
JKB