On Thu, Mar 14, 2013 at 1:21 PM, Ted Unangst <[email protected]> wrote:

> 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.
>


I failed to use a snapshot to build (a week ego) and then get busy.
! thanx for the update !
I will not use -static and linked the c++ with objects archive (.a)


-- 
---------------------------------------------------------------------------------------------------------------------
() ascii ribbon campaign - against html e-mail
/\

Reply via email to