[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtool problem on FreeBSD 4.1 with -pthread
From: |
Peter Ekberg |
Subject: |
Re: libtool problem on FreeBSD 4.1 with -pthread |
Date: |
Sat, 6 Nov 2004 17:29:25 +0100 |
Peter O'Gorman wrote:
> Peter Ekberg wrote:
>
>> This patch (against branch-2-0) works for us<tm>.
>>
>> 2004-11-05 Peter Ekberg <spam.protected>
>>
>> * config/ltmain.m4sh (func_mode_link): forward thread
>> related flags to dependent applications and libraries.
>>
>
> The problem here is that although libtool-2.0 and later and
> libtool-1.4.2 and earlier will take the -pthread happily,
> libtool-1.5.x (and I think
> 1.4.3, but I am not sure) will barf and die if it sees -pthread in
> dependency_libs. I think it will say "cannot find the library `'".
>
> This means that if we add it to dependency_libs and you build your
> lib you may not be able to run ./configure && make on another package
> which uses your lib but whose developers are only reasonably
> up-to-date
> with libtool
> and have 1.5.10.
>
> If you put it in the .la in $inherited_linker_flags then all should
> be well (I think).
Ok, thanks for the hint. I originally did the patch for the libtool 1.4
series and wasn't aware of the new flag. Here's a revised patch.
Changelog entry as before...
Cheers,
Peter
2004-11-06 Peter Ekberg <spam.protected>
* config/ltmain.m4sh (func_mode_link): forward thread
related flags to dependent applications and libraries.
freebsd-pthread2.patch
Description: freebsd-pthread2.patch
RE: libtool problem on FreeBSD 4.1 with -pthread, Peter Ekberg, 2004/11/16