On Tue, Mar 05, 2013 at 22:18, Ted Unangst wrote: > On Mon, Mar 04, 2013 at 17:46, sven falempin wrote: >> Dear misc readers, >> >> I have a home small c++ program, i used it for a while with no fuss and use >> the -static on my command line. > >> Today i correct a 'feature' in the program (like deep inside), pass unit >> test and then rebuilt the all just >> like before on openbsd 5.2 >> and now it crash before the main routine in pthread_self (librthread)
Update: The current status of this is that static linking isn't supported with threads. It's complicated. Every OpenBSD machine you're going to run on is going to have libthread. And if they have a different version of the library, they have a different version of the kernel. We've been pretty aggressive about reworking some of the thread system calls, so even if you did statically link, the resulting binary wouldn't run with a different kernel.