Le 05/02/2012 18:02, Andrew Benton a écrit :
> On Sat, 04 Feb 2012 23:00:37 +0100
> Pierre Labastie<[email protected]>  wrote:
>
>> Looks like the libstdc++.a built during chapter 5 cannot be used...
>> Some missing -fPIC during build of libstdc++?
>> (-fPIC is indeed used for C++ bindings during the build of gmp)
>>
>> So, I do not know what to do. Well, does it make a difference if
>> not building the libgmpxx library with -static?
>>
>> Is there a package which uses libgmpxx anyway? (not even sure gcc needs the
>> C++ bindings).
> In stead of linking the static library, did you try (during 6.6.
> Creating Essential Files and Symlinks):
>
> sed 's/tools/usr/' /tools/lib/libstdc++.la>  /usr/lib/libstdc++.la
>
> Andy
Well, the problem is twofold:
-configure compiles a simple C++ program with -static, which
makes ld look for libstdc++.a, without using libtool.
For this part, libstdc++.a needs to be where the libraries are searched
by ld. This is the reason why I linked it
-if configure finds that -static works with C++, it builds
libgmpxx.so with some static flags, which breaks at some
point. Do not know why. I think it might be interesting to
compare libstdc++.a from chapter 5 and the same from chapter 6.

If I understand the xxx.la files, they are used by libtool to find
libraries. I am certainly missing something, but I do not understand
why changing tools to usr in libstdc++.la would give a better
result. When gmp is built (ie before gcc in chapter 6), there is no
libstdc++{.a,.so} in /usr/lib. Maybe moving it could change something,
though.

Pierre
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to