fedora20,static link, cannot find -lgcc_s
when I link a program statically, I got the error:
g++ -Wl,-z,relro -Wl,-z,now -o ptsminer obj/cpuid.o obj/sha512_avx.o obj/sha512_sse4.o obj/sha512_avx2.o obj/sha512.o obj/sph_sha2.o obj/sph_sha2big.o obj/main_poolminer.o -Wl,-Bstatic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -Wl,-Bstatic -l z -l dl -l pthread
/usr/bin/ld: cannot find -lgcc_s
I figured out that libgcc_s.a should belongs to libgcc, but it seems there's no static version for libgcc, Am I doing sth wrong?
You question is answered here https://ask.fedoraproject.org/en/question/38202/fedora-19-and-avaliable-static-libraries/ :
yum install glibc-static
I used "yum provides */libgcc_s.a" and "repoquery --whatprovides /usr/lib64/libgcc_s.a" to find the lib, but failed, and I already installed glibc-static. I wonder if libgcc_s.a exist in fedora20?