libtool-patches
[Top][All Lists]
Advanced

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

Re: linking a shared library with -pthread omits -pthread on the link li


From: Bob Friesenhahn
Subject: Re: linking a shared library with -pthread omits -pthread on the link line.
Date: Sat, 14 Dec 2002 17:24:07 -0600 (CST)

On Sat, 14 Dec 2002, Ossama Othman wrote:

> Hi,
>
> On Sat, Dec 14, 2002 at 02:50:09PM -0600, Albert Chin wrote:
> > Because it's different! Actually, it works for everything *except* the
> > C tag. The reason is because we do this:
> >   set dummy $CC
> >   compiler=$2
> >
> > Obviously, if CC="gcc -mno-cygwin", then $2=gcc. The correct solution
> > is:
> >   set dummy "$CC"
> >   compiler=$2
>
> I'm not against the patch, but shouldn't we educate folks to put
> things like "-mno-cygwin" into the appropriate "FLAGS" variable
> (e.g. CFLAGS) rather than abuse a variable that is meant to only hold
> the compiler name.

Worse than that, CFLAGS is an Autoconf/Automake/Makefile thingy
whereas libtool is utility thingy.  Once libtool is installed, it
knows nothing about CFLAGS.  It simply sees a list of options passed
on its command line.

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




reply via email to

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