Linkowanie statyczne.
    The Undefined 
    undefine w aramin.net
       
    Czw,  4 Lis 2004, 09:20:54 CET
    
    
  
On Thu, Nov 04, 2004 at 08:02:40AM +0100, Piotr Wawrzyniak wrote:
> glibc kompilowałem z trochę innymi flagami niż jest to robione w pld, może to 
> jest problemem.
> [piotr w timemachine ~/programowanie]$ echo $CFLAGS
> -Os -march=pentium4 -mcpu=pentium4 -mfpmath=sse -msse2 -mmmx -s -pipe -z 
> combreloc -DBDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer
moze..
[undefine w amd64-devel undefine]$ cat >a.c
main() { printf("Dupa\n"); }
[undefine w amd64-devel undefine]$ cc a.c -o a.shared
[undefine w amd64-devel undefine]$ cc -static a.c -o a.static
[undefine w amd64-devel undefine]$ ls -l a.shared a.static 
-rwx------  1 undefine users   9033 2004-11-04 08:16 a.shared
-rwx------  1 undefine users 483949 2004-11-04 08:16 a.static
[undefine w amd64-devel undefine]$ file a.shared a.static 
a.shared: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.6, dynamically linked (uses shared libs), not stripped
a.static: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.6, statically linked, not stripped
[undefine w amd64-devel undefine]$ 
na amd64 dziala
[undefine w athlon-devel undefine]$ cat >a.c
main() { printf("dupa\n");}
[undefine w athlon-devel undefine]$ cc a.c -o a.shared
[undefine w athlon-devel undefine]$ cc -static a.c -o a.static
[undefine w athlon-devel undefine]$ ls -l a.shared a.static 
-rwx------  1 undefine users   6499 2004-11-04 08:19 a.shared
-rwx------  1 undefine users 428760 2004-11-04 08:19 a.static
[undefine w athlon-devel undefine]$ file a.shared a.static 
a.shared: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.6, dynamically linked (uses shared libs), not stripped
a.static: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.6, statically linked, not stripped
na athlonie tez.
wszystko aktualne z main+ready
-- 
Andrzej 'The Undefined' Dopierała
UNIX && Linux administrator, Adam Mickiewicz University WMiI
PLD Linux Developer             HomePage: http://aramin.net/
JID: undefine w piastlan.net    e-mail: undefine w pld-linux.org
    
    
Więcej informacji o liście dyskusyjnej pld-devel-pl