This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++ in gcc-2.95.2 on AIX update
- To: gcc-bugs at gcc dot gnu dot org
- Subject: libstdc++ in gcc-2.95.2 on AIX update
- From: James Carlson <carlson at workingcode dot com>
- Date: Sun, 9 Apr 2000 14:26:03 -0400 (EDT)
OK, I've gotten it to link. The problems are that the shared
libstdc++ is constructed explicitly rather than through the use of
libtool, and that libgcc2.a is needed by libstc++, but isn't
referenced. I manually changed the Makefile and built a working
libstdc++.so.2.10.0. Here's an excerpt from the Makefile, in case it
will help someone:
libstdc.exp: piclist
@ld -r -o templib `cat piclist`
@rm -f libstdc.exp
@echo '#! '$(SHLIB) > libstdc.exp
@nm templib | sed -n -e 's/^.*[ ]\([ABCDGISTW]\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$$/\2/p' | sort | uniq >> libstdc.exp
@rm -f templib
$(SHLIB): libstdc.exp
@ld -bM:SRE -bloadmap:foo.map -o $(SHLIB) `cat piclist` $(SHLIB) -bE:libstdc.exp -bnoentry -L/usr/local/lib /cdstaging/tmp/aixgcc/gcc/libgcc2.a -lgcc -lc
@rm -f libstdc.exp
I can also make a machine available ...
--
James Carlson <carlson@workingcode.com>
"PPP Design and Debugging" --- http://people.ne.mediaone.net/carlson/ppp