[oi-dev] gcc default

Ewald Ertl ewald.ertl at gmail.com
Thu Nov 24 12:59:29 UTC 2011


Hi,

On Thu, Nov 24, 2011 at 8:22 AM, Jorgen Lundman <lundman at lundman.net> wrote:

>
> 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 can not help directly, but on a Debian 6.0.1 64bit installation, the gcc
is compiling per default to 64bit and the 32bit target must be explicitly
supplied in
the compile line.



> 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
>
> --
> Jorgen Lundman       | <lundman at lundman.net>
> Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
> Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
> Japan                | +81 (0)3 -3375-1767          (home)
>
> ______________________________**_________________
> oi-dev mailing list
> oi-dev at openindiana.org
> http://openindiana.org/**mailman/listinfo/oi-dev<http://openindiana.org/mailman/listinfo/oi-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20111124/d5b7a71f/attachment-0005.html>


More information about the oi-dev mailing list