Re: Static linking of a custom glibc

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

 



>This looks like more of a glibc question than a gcc question.  I would
>suggest reading
>  https://sourceware.org/glibc/wiki/Testing/Builds


Yes I am able to link to the new glibc with "-Wl,-rpath" and "-Wl,--dynamic-linker ".
But, even with the default libc on the system, I am not able to link statically.
$ gcc -o test -Wl,--emit-relocs -Wl,-Bstatic test.o              
/usr/bin/ld: cannot find -lgcc_s/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status

I ask that on glibc list, but it seems that this is a gcc related problem.I am confused...

Regards,
Mahmood 
| 
| 
|  | 
Testing/Builds - glibc wiki


 |

 |

 |





  




[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