This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/35942] Self Reference In Dynamic Linked Library builds for building Cross-Compiler



------- Comment #11 from jzb2 at aexorsyst dot com  2009-02-02 16:26 -------
Well, I answered my own question, sort of...

In my /usr/bin/libtool, in the CXX tag section, I have

postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s"

so voila, that's where it comes from, probably.

So this issue can now be reduced to the following:

Native builds and cross-compiles of libstdc++.so override this postdeps and
zero it out.  However, using a cross-compiler to generate host=target native
compiler with build!=host leaves it pulled in, being responsible, I believe,
for this bug.  Whether that's a libtool bug or a libstdc++ configure bug remain
unanswered...  Maybe this is a new wrinkle that newish versions of libtool have
and perhaps has not needed to be dealt with before.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35942


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]