bug-libtool
[Top][All Lists]
Advanced

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

Re: handling of -B with libtool


From: Mike Frysinger
Subject: Re: handling of -B with libtool
Date: Tue, 8 May 2007 12:34:31 -0400
User-agent: KMail/1.9.6

On Tuesday 08 May 2007, Ralf Wildenhues wrote:
> * Mike Frysinger wrote on Tue, May 08, 2007 at 12:41:44AM CEST:
> > looking through current libtool code, i dont see any places that it
> > allows gcc's -B arguments through to the linking stage ... is there such
> > code
>
> Currently not.  It would have to be at least a bit smart, too, to avoid
> passing through stuff like -Bstatic etc.

-Bstatic would be valid for the compiler driver regardless ... if you had a 
directory in $PWD named "static" ...

unless you mean invoking `ld` directly ?  -B to the compiler driver and -B to 
the linker have very diff meanings ...

> > or does it need to be added to the allowed flag list for valid linking
> > flags ?
>
> Not if it was passed in $CC, as in
>   ./configure CC='gcc -B /foo'
>
> which seems only prudent, as it makes little sense to sometimes use -B
> and sometimes not use it within one build, AFAICS.
>
> Is there any problem you have encountered?

i'm trying to use:
LDFLAGS = -B/some/path
in the build environment and things break when libtool is involved and it 
tries to link a shared library because it strips this -B flag ...
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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