libstdc++ in gcc-2.95.2 on AIX update

James Carlson carlson@workingcode.com
Sun Apr 9 11:26:00 GMT 2000


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


More information about the Gcc-bugs mailing list