[tlbuild] Testing cxx-runtime-hack -- V 1.1
Peter Breitenlohner
peb at mppmu.mpg.de
Mon Jan 26 14:24:19 CET 2009
On Mon, 26 Jan 2009, Thomas A. Schmitz wrote:
> Sure, he comes:
>
> configure:15214: checking for statically linking C++ runtime library
> configure:15243: g++ -o conftest -g -O2 conftest.cpp -nodefaultlibs
> -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm -lgcc_eh -lgcc -lc -lgcc_eh -lgcc
>> &5In file included from /usr/include/c++/3.3.3/backward/iostream.h:31,
> from conftest.cpp:22:
> /usr/include/c++/3.3.3/backward/backward_warning.h:32:2: warning: #warning
> This file includes at least one deprecated or antiquated header. Please
> consider using one of the 32 headers found in section 17.4.1.2 of the C++
> standard. Examples include substituting the <X> header for the <X.h> header
> for C++ includes, or <sstream> instead of the deprecated header
> <strstream.h>. To disable this warning use -Wno-deprecated.configure:15250:
> $? = 0
> configure:15277: result: ok using -nodefaultlibs -Wl,-Bstatic -lstdc++
> -Wl,-Bdynamic -lm -lgcc_eh -lgcc -lc -lgcc_eh -lgcc
Hi Thomas,
thanks, that is exactly as expected and what I get (except that I had
suppressed the warning). Very strange.
Can you check if there exists a small shell script BLD/am-lt/CXXLD.sh.
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
Peter Breitenlohner <peb at mppmu.mpg.de>
More information about the tlbuild
mailing list