[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: handling of -B with libtool
From: |
Ralf Wildenhues |
Subject: |
Re: handling of -B with libtool |
Date: |
Wed, 9 May 2007 09:12:26 +0200 |
User-agent: |
Mutt/1.5.15 (2007-04-29) |
* Mike Frysinger wrote on Tue, May 08, 2007 at 06:34:31PM CEST:
>
> -Bstatic would be valid for the compiler driver regardless ... if you had a
> directory in $PWD named "static" ...
If you have a directory named static and used that as argument for -B,
you deserve trouble. Also, isn't -B to be fed an absolute path?
> unless you mean invoking `ld` directly ? -B to the compiler driver and -B to
> the linker have very diff meanings ...
Sure. But in general, libtool may invoke either the compiler driver or
the linker directly. It doesn't do that for GCC any more, I think, but
it used to.
> 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 ...
You can work around it using
-Wc,-B/some/path
or
-Xcompiler -B/some/path
for now.
Cheers,
Ralf