https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79182

--- Comment #3 from hwliu11 at hotmail dot com ---
(In reply to Jakub Jelinek from comment #2)
> That is a libc issue, statically linking only parts of -lpthread often
> results in broken programs, unless libpthread.a ensures all of libpthread is
> linked when linking statically (e.g. what is done in some distributions
> where libpthread.a contains only libpthread.o - result of ld -r).  If your
> distro isn't doing this, I'm afraid you need to use -static
> --Wl,--whole-archive -lpthread -Wl,--no-whole-archive.


Thank you very much,It works!So it's not a bug?please close this issuse

Reply via email to