[tlbuild] Testing cxx-runtime-hack -- V 1.1

Thomas A. Schmitz thomas.schmitz at uni-bonn.de
Mon Jan 26 15:00:43 CET 2009


On Jan 26, 2009, at 2:24 PM, Peter Breitenlohner wrote:

> Can you remove BLD/am-lt/cxx-test-am-lt, and rerun 'make' in BLD/am- 
> lt.
>
> You shold get something like:
> 	/bin/sh ./libtool --tag=CXX   --mode=link ./CXXLD.sh \
> 		-o cxx-test-am-lt cxx-test.o
> 	libtool: link: ./CXXLD.sh -o cxx-test-am-lt cxx-test.o
> 	./CXXLD.sh: g++ -O2 -o cxx-test-am-lt cxx-test.o \
> 		-nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic \
> 		-lm -lgcc_eh -lgcc -lc -lgcc_eh -lgcc
> and the resulting executable should not depend on libstc++.so.
>
> Regards

Here's what I get:

/bin/sh ./libtool --tag=CXX   --mode=link ./CXXLD.sh -Wno-deprecated - 
g -O2   -o cxx-test-am-lt cxx-test.o
libtool: link: ./CXXLD.sh -Wno-deprecated -g -O2 -o cxx-test-am-lt cxx- 
test.o
./CXXLD.sh: g++ -Wno-deprecated -g -O2 -o cxx-test-am-lt cxx-test.o - 
nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm -lgcc_eh -lgcc - 
lc -lgcc_eh -lgcc

ldd cxx-test-am-lt
	linux-vdso32.so.1 =>  (0x00100000)
	libm.so.6 => /lib/ppc970/libm.so.6 (0x0ff20000)
	libc.so.6 => /lib/ppc970/libc.so.6 (0x0fd70000)
	/lib/ld.so.1 (0xf7fb0000)

./cxx-test-am-lt
worksok

Seems to look good, right?

Thomas


More information about the tlbuild mailing list