Re: LDFLAGS= -pthread situation

From: Tomoaki AOKI <junchoon_at_dec.sakura.ne.jp>
Date: Mon, 29 Jan 2024 11:10:52 UTC
On Mon, 29 Jan 2024 09:27:02 +0000
Nuno Teixeira <eduardo@freebsd.org> wrote:

> Hello all!
> 
> I was updating games/exult-devel and I found that build failed with:
> 
> ld: error: undefined symbol: pthread_create
> >>> referenced by LowLevelMidiDriver.cpp
> >>>               LowLevelMidiDriver.o:(std::__1::thread::thread<int (&)(LowLevelMidiDriver*) <snip>
> 
> 
> Related to a upstream change about threading support from C++11...
> 
> Using LDFLAGS= -pthread fixed build and it is present in lot of ports.
> 
> My question is if upstream could do anything to avoid this LDFLAGS addition.
> This is being discussed at https://github.com/exult/exult/issues/436
> 
> Any sugestions are welcome!
> 
> Thanks,
> 
> -- 
> Nuno Teixeira
> FreeBSD Committer (ports)

Different port, but looks very similar situation with Bug 275950 [1],
which I've filed but still not yet triaged (Status: New).


[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275950

-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>