This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-static compile on Solaris 10 sparc


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]