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: Ralf Wildenhues
Subject: Re: libtool problem on FreeBSD 4.1 with -pthread
Date: Mon, 8 Nov 2004 16:17:17 +0100
User-agent: Mutt/1.4.1i

* Gary V. Vaughan wrote on Mon, Nov 08, 2004 at 01:00:45PM CET:
> Ralf Wildenhues wrote:
> >
> > - For different compilers on the same system, different flags might be
> > necessary.  Thus, if you compile the library with a different
> > compiler than the one you compile the program with, it might break.
> > Note that it might not work anyway, so maybe it's not useful to worry
> > about this too much.  (If it turns out to be an issue, let libtool
> > resolve it by storing a compiler-independent flag there and substituting
> > it for the cmdline;  e.g. -thread-safe).
> 
> Libtool (and autoconf) will only ever work properly if it is called
> with the same compiler that was used at build time.  It is a limitation
> of the architecture that we can't work around... short of rerunning
> all the compile time tests at every invocation.

Yes, but this is a different scenario: We store flags in an installed
.la file.  These flags are possibly compiler-dependent.  This is new
AFAICS.  I have thought so far that installed .la files should be
accessible for any compiler.  This is where storing a portable
-thread-safe (or similar, since that flag already has a specific meaning)
could help out if necessary.

* Bob Friesenhahn wrote on Mon, Nov 08, 2004 at 03:43:40PM CET:
> On Mon, 8 Nov 2004, Gary V. Vaughan wrote:
> >>What do the others think?  I don't want to have the last word here.
> >
> >I see no reason not to put it on HEAD and try it out as is.
> 
> Seconded.

Ok. Patch applied to HEAD but not to branch-2-0, with a slightly more
verbose ChangeLog entry.

Regards,
Ralf




reply via email to

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