Yes. Commiting this now,

Thanks

Alastair

On 26/03/2026 19:25, Adrian Bunk wrote:
Control: tags -1 patch
Control: block 1129586 by -1

On Fri, Feb 29, 2008 at 02:40:34PM +0100, Vincent Danjean wrote:
Package: libtool
Version: 1.5.26-1
Severity: normal

I've an automake/libtool project where I build a library. This library
uses pthread functions so it needs to be linked against (dynamic
library).
To find the flags to use to be linked against the libpthread, I use
the ACX_PTHREAD m4 macro (from the autoconf-archive package).
It finds that all is needed is the FLAGS "-pthread"

However, libtool invoque the g++ linker with the -nostdlib flags that
render the -pthread flags ignored.
Alastair, could you add the attached patch backported from 2.6.0?

The problem is old, but we are having a new class of cases on ppc64el
(see e.g. #1129586).

The libtool change does not change the default, but it gives packages
the option to opt out of -nostdlib with --enable-cxx-stdlib.

Thanks
Adrian

--
Alastair McKinstry,
GPG: 82383CE9165B347C787081A2CBE6BB4E5D9AD3A5
e: [email protected], im: @alastair:mckinstry.ie
https://mastodon.ie/@amckinstry

Reply via email to