libtool
[Top][All Lists]
Advanced

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

Re: libstdc++.la listed in dependency_libs of a static C++ library?


From: Ralf Wildenhues
Subject: Re: libstdc++.la listed in dependency_libs of a static C++ library?
Date: Tue, 3 Apr 2007 20:34:52 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hello Benoit,

* Benoit Sigoure wrote on Tue, Apr 03, 2007 at 04:19:25PM CEST:
> 
> [Compilation of the libkernel]

This link line:

> /bin/sh ../libtool --tag=CXX   --mode=link arm-linux-g++ [losts of -Warning
> flags] -pthread -g -O2 -pipe -static  -o libkernel.la -rpath
> /home/build/built/kernel1-stable_cross_arm_eldk/gostai/kernel/arm-linux/korebot

does not match this file:

> libkernel.la: http://www.tsunanet.net/~tsuna/eldk-libtool-problem/libkernel.la

because $libdir is empty in the latter, but -rpath is listed in the
former.

That's not the only (or important, FWIW) issue here, though.  The
installed libstdc++.la file is broken.  Reason for that include
bugs/limitations in Libtool, bugs in GCC, and possibly in the script
that has been used to build it.  (AFAIK there is a related GCC bug
listed in their bugzilla, not sure if it was 5291 and no, please
don't expect me to do an analysis of your particular issue; if I had
the time to do that, I'd be working on the GCC bug.)

Anyway the libdir should match the final location of the file, not
some $DESTDIR-prefixed temporary location.  Likewise for entries in
dependency_libs.

Hope that helps at least a little bit.

Cheers,
Ralf




reply via email to

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