http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47762

--- Comment #20 from chrbr at gcc dot gnu.org 2012-04-18 13:32:31 UTC ---
(In reply to comment #17)
> does it help if you link to libpthread using --whole-archive ?
> 
> g++ deallocate_global_thread-1.cc -static  -Wl,--whole-archive -lpthread
> -Wl,--no-whole-archive -lrt

yes it works ! without whole-archive:

nm a.out | grep pthread_key_delete
w pthread_key_delete

with whole-archive:
00000000004064a0 T pthread_key_delete

now it worked for Paolo without it :-(

So final conclusion is that there seems to have no problem with
deallocate_global_thread-1.cc 

thanks !

Reply via email to