Date: Mon, 29 Jan 2024 09:27:02 +0000 From: Nuno Teixeira <eduardo@freebsd.org> To: FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: LDFLAGS= -pthread situation Message-ID: <CAFDf7UKLPaWjmK-p5m8y5cj51t5geb=8ur_=JnSpBRQTv2B1dg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
--0000000000003cbaf20610124086 Content-Type: text/plain; charset="UTF-8" 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) --0000000000003cbaf20610124086 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello all!</div><div><br></div><div>I was updating ga= mes/exult-devel and I found that build failed with:</div><div><pre class=3D= "gmail-notranslate"><code class=3D"gmail-notranslate">ld: error: undefined = symbol: pthread_create >>> referenced by LowLevelMidiDriver.cpp >>> LowLevelMidiDriver.o:(std::__1::thread::thread&l= t;int (&)(LowLevelMidiDriver*) <snip></code></pre></div><div><br>= </div><div>Related to a upstream change about threading support from C++11.= ..<br><br></div><div>Using LDFLAGS=3D -pthread fixed build and it is presen= t in lot of ports.</div><div><br></div><div>My question is if upstream coul= d do anything to avoid this LDFLAGS addition.</div><div>This is being discu= ssed at <a href=3D"https://github.com/exult/exult/issues/436">https://githu= b.com/exult/exult/issues/436</a></div><div><br></div><div>Any sugestions ar= e welcome!</div><div><br></div><div>Thanks,<br></div><div><br></div><span c= lass=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gma= il_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><span sty= le=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</s= pan></div></div></div> --0000000000003cbaf20610124086--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKLPaWjmK-p5m8y5cj51t5geb=8ur_=JnSpBRQTv2B1dg>