]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* doc/libtool.texi (C++ libraries): Finally updated to reflect
authorRobert Boehne <rboehne@gnu.org>
Fri, 19 Apr 2002 19:26:59 +0000 (19:26 +0000)
committerRobert Boehne <rboehne@gnu.org>
Fri, 19 Apr 2002 19:26:59 +0000 (19:26 +0000)
Libtool's support for C++.

ChangeLog
doc/libtool.texi

index cf40f651c3becec66d95e602bbf8e1afa0727803..6f3036b2e0d516ce3da97bf0fc2326e94afd105b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-19  Robert Boehne  <rboehne@gnu.org>
+
+       * doc/libtool.texi (C++ libraries): Finally updated to reflect
+       Libtool's support for C++.
+
 2002-04-14  Jean-Frederic Clere  <jfrederic.clere@fujitsu-siemens.com>
 
        * libtool.m4: Update support for Fujistu-Siemens Computers (FSC).
index 8f448e3866aa067f82e2daa119cb744f5ed7857f..e9505729813b4f3a694618c04429c159f4aafa0a 100644 (file)
@@ -3571,22 +3571,14 @@ C++ compilers will link some Standard C++ library in by default, but
 libtool does not know which are these libraries, so it cannot even run
 the inter-library dependence analyzer to check how to link it in.
 Therefore, running @file{ld} to link a C++ program or library is deemed
-to fail.  However, running the C++ compiler directly may lead to
-problems related with inter-library dependencies.
+to fail.
 @end enumerate
 
-The conclusion is that libtool is not ready for general use for C++
-libraries.  You should avoid any global or static variable
-initializations that would cause an ``initializer element is not
-constant'' error if you compiled them with a standard C compiler.
-
-There are other ways of working around this problem, but they are beyond
-the scope of this manual.
-
-Furthermore, you'd better find out, at configure time, what are the C++
-Standard libraries that the C++ compiler will link in by default, and
-explicitly list them in the link command line.  Hopefully, in the
-future, libtool will be able to do this job by itself.
+Because of these three issues, Libtool has been designed to always use
+the C++ compiler to compile and link C++ programs and libraries.  In
+some instances the @code{main()} function of a program must also be
+compiled with the C++ compiler for static C++ objects to be properly
+initialized.
 
 
 @node Troubleshooting