On 7/25/07, Alan Coopersmith <alan.coopersmith at sun.com> wrote:
> Y.C. Chen wrote:
> > I build xorg on AMD64 environment, but the building image is for i386
> > (elf32).
> > How can I generate the code for amd64 (elf64)?
>
> Add the 64-bit compiler flag variable to your $CFLAGS environment
> variable ("-m64" for gcc, "-xarch=generic64" for Sun Studio cc).
>
you can use -m64 for cc if you have SunStudio 12. I think
-xarch=generic64 is obsolete.
--
Lukas Oboril
When dealing with people, let us remember we are not dealing with
creatures of logic. We are dealing with creatures of emotions,
creatures bristling with prejudices and motivated by pride and vanity.
Dale Carnegie