-static compile on Solaris 10 sparc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I would like to know how to statically and -ggdb compile on Solaris 10 sparc ? Apparently, You cant do that on Solaris, why not? any workaround? I want to be able to disamble all a C program including C library calls.


-bash-3.00$ cat 1.c
main()
{
       printf("hola\n");
       exit(1);
}
-bash-3.00$ \gcc -static 1.c
ld: fatal: library -lc: not found
ld: fatal: library -lc: not found
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status
-bash-3.00$ \gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.4.2

thanks for a detailed help on this issue

ework0


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux