libtool-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] OpenBSD -pthread fix


From: Bob Friesenhahn
Subject: Re: [PATCH] OpenBSD -pthread fix
Date: Sun, 21 Sep 2003 09:11:57 -0500 (CDT)

On Sun, 21 Sep 2003, Peter O'Gorman wrote:
> >       ;;
> > +        -pthread)
> > +     deplibs="$deplib $deplibs"
> > +     continue
> > +     ;;
>
> Hi,
> I think this needs a little more discussion. Older versions of libtool
> put all kinds of things into dependency_libs, although we could add
> individual flags like this to accept them, I don't believe it is
> appropriate.
>
> So the question is:
> Should we just ignore unknown stuff in dependency_libs (perhaps issue a
> warning), or just take the flags and pass them through to the linker,
> assuming they are okay?

If options like -pthread are not passed through then the link may fail
or produce the wrong result since -pthread may secretly add libraries,
or change the entire library selection logic.  I have developed for an
OS (LynxOS) which provided a completely different set of libraries if
-pthread was specified.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

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