libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool problem on FreeBSD 4.1 with -pthread


From: Peter O'Gorman
Subject: Re: libtool problem on FreeBSD 4.1 with -pthread
Date: Fri, 05 Nov 2004 21:18:52 +0900
User-agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803)

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).

Peter
--
Peter O'Gorman - http://www.pogma.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]