This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Friday 04 April 2008, Thiemo Seufer wrote:
> I see a funny effect when building binutils native on Debian
> unstable/mips:
>
> The host /usr/bin/ar segfaults because
> 1) it is a dynamic executable which needs libbfd.so
> 2) the build system provides a freshly built (and ABI incompatible)
> via LD_LIBRARY_PATH.
>
> The library path override comes from RPATH_ENVVAR, which ultimately
> stems from a lib_path definition in the toplevel Makefile.def:
>
> [...]
> host_modules= { module= bfd; lib_path=.libs; bootstrap=true; };
> host_modules= { module= opcodes; lib_path=.libs; bootstrap=true; };
> [...]
>
> However, the users of those libraries are AFAICS careful to get the
> paths right, which suggests meddling with the environment isn't needed
> in that case.
>
> Did I miss something, or is removing those two lib_path statements the
> right solution?
>
> gmp and mpfr are two more host libraries which define a lib_path, but
> they require --disable-shared, which avoids the problem.
this is bug 4970. i found punting RPATH_ENVVAR is simpler.
http://sources.gentoo.org/gentoo/src/patchsets/binutils/2.18/08_all_binutils-RPATH_ENVVAR-smack.patch
-mike
Attachment:
signature.asc
Description: This is a digitally signed message part.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |