gcc64 i dualne architektury.

robert j. wozny robert.wozny at gmail.com
Fri Jan 28 10:26:58 CET 2005


On Fri, 28 Jan 2005 08:38:16 +0100, Paweł Sikora <pluto at pld-linux.org> wrote:

> >    /usr/lib/32/libiberty.a
> >    /usr/lib64/libiberty.a

khm. to do czegoś jest potrzebne...?

> zrób jeden pakiet gcc zawierajacy obie wersje (tzw. multilib),
> żeby można było korzystać z przełącznika -m32/-m64 bez instalowania
> dodatkowych pakietów. ztcp tak jest zrobiony któryś cross*-gcc.spec

zrobione. 

[speedy at smark 2]$ gcc a.c 
[speedy at smark 2]$ gcc -m32 -o a.out32 a.c
[speedy at smark 2]$ gcc -m64 -o a.out64 a.c
[speedy at smark 2]$ file a.out*
a.out:   ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), for
GNU/Linux 2.4.6, dynamically linked (uses shared libs), not stripped
a.out32: ELF 32-bit MSB executable, SPARC, version 1 (SYSV), for
GNU/Linux 2.4.6, dynamically linked (uses shared libs), not stripped
a.out64: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), for
GNU/Linux 2.4.6, dynamically linked (uses shared libs), not stripped

-- r.




More information about the pld-devel-pl mailing list