Bug#578831: link failure with LTO: “invalid DSO for symbol `pthread_cancel@@GLIBC_2.0' definition”
On 27/04/2010 01:26, Matthias Klose wrote:
> On 23.04.2010 10:22, Steinar H. Gunderson wrote:
>> On Fri, Apr 23, 2010 at 08:41:53AM +0200, Vincent Danjean wrote:
>>> Please, look at #577961. It seems to me that this is the same bug (and
>>> now, I think the bug belong to gcc-4.5)
>> OK, adding -lpthread makes the error go away.
> please make sure that *all* flags (except preprocessor flags) passed to
> cc1 are also passed to lto1. For common build systems, this does mean
> passing $(CFLAGS) to the link command.
I do not know for #578831 but, for #577961 the application must not be
required to link to -lpthread (and lto1 is not used).
Vincent Danjean GPG key ID 0x9D025E87 firstname.lastname@example.org
GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87
Unofficial packages: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo: deb http://perso.debian.org/~vdanjean/debian unstable main