[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: |
Christian Thalinger |
Subject: |
Re: libtool does not add stdc++ when linking on Linux |
Date: |
Thu, 19 Jun 2008 11:58:13 +0200 |
On Wed, 2008-06-18 at 10:19 -0500, Bob Friesenhahn wrote:
> On Wed, 18 Jun 2008, Christian Thalinger wrote:
> >
> > I am compiling some C files and one C++ with GCC and linking them into
> > a .a library (libvm.a). The resulting libvm.la misses the stdc++
> > dependency on Linux, while it is there on OpenSolaris:
> >
> > Any idea why the dependency is missing on Linux?
>
> Did you install the libtool on Linux from the original FSF
> distribution or are you using a libtool prepared by a Linux package
> maintainer? Package maintainers often make such changes.
Btw. here is the link command of the libvm.a and the libvm.la:
<snip>
make[1]: Entering directory
`/nfs/nfstmp/twisti/cacao/cacao/build-x86_64-linux/src/vm'
/bin/sh ../../libtool --tag=CXX --mode=link g++ -std=c++98 -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 -o libvm.la
assertion.lo access.lo array.lo builtin.lo exceptions.lo finalizer.lo
initialize.lo package.lo primitive.lo properties.lo resolve.lo signal.lo
string.lo vm.lo jit/libjit.la
libtool: link: rm -fr .libs/libvm.a .libs/libvm.la
libtool: link: (cd .libs/libvm.lax/libjit.a && ar x
"/nfstmp/twisti/cacao/cacao/build-x86_64-linux/src/vm/jit/.libs/libjit.a")
libtool: link: ar cru .libs/libvm.a .libs/assertion.o .libs/access.o
.libs/array.o .libs/builtin.o .libs/exceptions.o .libs/finalizer.o
.libs/initialize.o .libs/package.o .libs/primitive.o .libs/properties.o
.libs/resolve.o .libs/signal.o .libs/string.o .libs/vm.o
.libs/libvm.lax/libjit.a/argument.o .libs/libvm.lax/libjit.a/code.o
.libs/libvm.lax/libjit.a/codegen-common.o
.libs/libvm.lax/libjit.a/disass-common.o .libs/libvm.lax/libjit.a/dseg.o
.libs/libvm.lax/libjit.a/emit-common.o
.libs/libvm.lax/libjit.a/exceptiontable.o
.libs/libvm.lax/libjit.a/executionstate.o .libs/libvm.lax/libjit.a/jit.o
.libs/libvm.lax/libjit.a/linenumbertable.o
.libs/libvm.lax/libjit.a/methodtree.o .libs/libvm.lax/libjit.a/parse.o
.libs/libvm.lax/libjit.a/patcher-common.o .libs/libvm.lax/libjit.a/reg.o
.libs/libvm.lax/libjit.a/replace.o .libs/libvm.lax/libjit.a/show.o
.libs/libvm.lax/libjit.a/stack.o .libs/libvm.lax/libjit.a/stacktrace.o
.libs/libvm.lax/libjit.a/trace.o .libs/libvm.lax/libjit.a/trap.o
.libs/libvm.lax/libjit.a/cfg.o .libs/libvm.lax/libjit.a/simplereg.o
.libs/libvm.lax/libjit.a/inline.o .libs/libvm.lax/libjit.a/bytecode.o
.libs/libvm.lax/libjit.a/ifconv.o .libs/libvm.lax/libjit.a/profile.o
.libs/libvm.lax/libjit.a/recompile.o .libs/libvm.lax/libjit.a/reorder.o
.libs/libvm.lax/libjit.a/typecheck.o
.libs/libvm.lax/libjit.a/typecheck-common.o
.libs/libvm.lax/libjit.a/typecheck-stackbased.o
.libs/libvm.lax/libjit.a/typecheck-typeinferer.o
.libs/libvm.lax/libjit.a/typeinfo.o .libs/libvm.lax/libjit.a/asmpart.o
.libs/libvm.lax/libjit.a/codegen.o .libs/libvm.lax/libjit.a/disass.o
.libs/libvm.lax/libjit.a/emit.o .libs/libvm.lax/libjit.a/patcher.o
.libs/libvm.lax/libjit.a/md-abi.o .libs/libvm.lax/libjit.a/md.o
.libs/libvm.lax/libjit.a/md-os.o
libtool: link: ranlib .libs/libvm.a
libtool: link: rm -fr .libs/libvm.lax
libtool: link: ( cd ".libs" && rm -f "libvm.la" && ln -s "../libvm.la"
"libvm.la" )
make[1]: Leaving directory
`/nfs/nfstmp/twisti/cacao/cacao/build-x86_64-linux/src/vm'
address@hidden:/nfstmp/twisti/cacao/cacao/build-x86_64-linux/src/vm$ cat
libvm.la
# libvm.la - a libtool library file
# Generated by ltmain.sh (GNU libtool) 2.2.4
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname=''
# Names of this library.
library_names=''
# The name of the static archive.
old_library='libvm.a'
# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''
# Libraries that this one depends upon.
dependency_libs=''
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for libvm.
current=
age=
revision=
# Is this an already installed library?
installed=no
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir=''
- 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, 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, 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