[oi-dev] gcc default

Igor Pashev pashev.igor at gmail.com
Thu Nov 24 08:27:12 UTC 2011


24.11.2011 11:22, Jorgen Lundman пишет:
> 
> After figuring out the sfe repository stuff, we finally managed to
> install gcc-4. OpenIndiana runs nicely in 64bit, and everything is
> 64bit, including perl and perl modules.
> 
> And yet, when you use gcc, the default output is 32bit. Does this really
> make sense any more? (on intel at least).
> 
> Sure I can add -m64 to everything I compile, (presumably including perl
> modules) but is there no easy way to change the default from -m32 to -m64 ?
> 
> I was stuffing around in the
> /usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.2/plugin/include/config/i386 area,
> but it appears to be used when compiling gcc. Not after.
> 
> Should the default be changed to 64bit in the repository?
> 
> Lund
> 

GCC >= 4.7 will produce 64bit code by default on x86_64-solaris2.11 ;-)




More information about the oi-dev mailing list