[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtool does not add stdc++ when linking on Linux
From: |
Andreas Schwab |
Subject: |
Re: libtool does not add stdc++ when linking on Linux |
Date: |
Thu, 19 Jun 2008 12:48:35 +0200 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) |
Christian Thalinger <address@hidden> writes:
> On Thu, 2008-06-19 at 11:57 +0200, Andreas Schwab wrote:
>> Christian Thalinger <address@hidden> writes:
>>
>> > Linux:
>> > /bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -pedantic -Wall
>> > -Wno-long-long -m64 -D__X86_64__ -D__LINUX__ -D_POSIX_C_SOURCE=200112L
>> > -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_REENTRANT
>> > -o libjvm.la -rpath /usr/local/cacao/lib -version-info
>> > 1:0:0 ../../src/fdlibm/libfdlibm.la ../../src/mm/libmm.la
>> > ../../src/native/libnative.la ../../src/threads/libthreads.la
>> > ../../src/toolbox/libtoolbox.la ../../src/vm/libvm.la
>> > ../../src/vmcore/libvmcore.la -lz -lpthread -lopcodes -lbfd -liberty -ldl
>>
>> When none of these libraries depend on libstdc++ then there is nothing
>> else that adds that dependency.
>
> Right, but ../../src/vm/libvm.la should depend on it, as it does on
> OpenSolaris, since it contains a C++ object file.
Why does that follow? Just because an object is compiled with the C++
compiler does not mean that it uses any features from libstdc++.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- libtool does not add stdc++ when linking on Linux, Christian Thalinger, 2008/06/18
- Re: libtool does not add stdc++ when linking on Linux, Andreas Schwab, 2008/06/19
- Re: libtool does not add stdc++ when linking on Linux, Christian Thalinger, 2008/06/19
- Re: libtool does not add stdc++ when linking on Linux,
Andreas Schwab <=
- Re: libtool does not add stdc++ when linking on Linux, Christian Thalinger, 2008/06/19
- Re: libtool does not add stdc++ when linking on Linux, Bob Friesenhahn, 2008/06/19
- Re: libtool does not add stdc++ when linking on Linux, Christian Thalinger, 2008/06/20
- Re: libtool does not add stdc++ when linking on Linux, Bob Friesenhahn, 2008/06/20
- Re: libtool does not add stdc++ when linking on Linux, Christian Thalinger, 2008/06/21
- Re: libtool does not add stdc++ when linking on Linux, Peter O'Gorman, 2008/06/20
- Re: libtool does not add stdc++ when linking on Linux, Christian Thalinger, 2008/06/21