mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 23:39:52 +08:00
[multiple changes]
2000-11-03 David Edelsohn <dje@watson.ibm.com> * acinclude.m4 (GLIBCPP_CHECK_OS): Add AIX target selecting threads flag based on multilib definition of $CXX. * mknumeric_limits (LDFLAGS): Add AIX target linking with pthreads based on multilib definition of $CXX. * config/os/aix/bits/os_defines.h (_G_USING_THUNKS): Define as 0. 2000-11-03 Phil Edwards <pme@sources.redhat.com> * acinclude.m4: Cleanups. * aclocal.m4: Regenerated. * configure: Ditto. * Makefile.in: Ditto. * libio/Makefile.in: Ditto. * libmath/Makefile.in: Ditto. * libsupc++/Makefile.in: Ditto. * src/Makefile.in: Ditto. * docs/install.html: Removal of EGCS. * docs/23_containers/wrappers_h.txt: Likewise. * docs/faq/index.html: Likewise. * docs/faq/index.txt: Regenerated. * docs/thanks.html: More people. From-SVN: r37241
This commit is contained in:
parent
872865cf04
commit
626d8f0a2c
@ -1,3 +1,28 @@
|
||||
2000-11-03 David Edelsohn <dje@watson.ibm.com>
|
||||
|
||||
* acinclude.m4 (GLIBCPP_CHECK_OS): Add AIX target selecting threads
|
||||
flag based on multilib definition of $CXX.
|
||||
* mknumeric_limits (LDFLAGS): Add AIX target linking with pthreads
|
||||
based on multilib definition of $CXX.
|
||||
* config/os/aix/bits/os_defines.h (_G_USING_THUNKS): Define as 0.
|
||||
|
||||
2000-11-03 Phil Edwards <pme@sources.redhat.com>
|
||||
|
||||
* acinclude.m4: Cleanups.
|
||||
* aclocal.m4: Regenerated.
|
||||
* configure: Ditto.
|
||||
* Makefile.in: Ditto.
|
||||
* libio/Makefile.in: Ditto.
|
||||
* libmath/Makefile.in: Ditto.
|
||||
* libsupc++/Makefile.in: Ditto.
|
||||
* src/Makefile.in: Ditto.
|
||||
|
||||
* docs/install.html: Removal of EGCS.
|
||||
* docs/23_containers/wrappers_h.txt: Likewise.
|
||||
* docs/faq/index.html: Likewise.
|
||||
* docs/faq/index.txt: Regenerated.
|
||||
* docs/thanks.html: More people.
|
||||
|
||||
2000-11-03 David Edelsohn <edelsohn@gnu.org>
|
||||
|
||||
* include/c/bits/std_cwchar.h: Undefine macro that conflicts
|
||||
|
@ -133,7 +133,48 @@ MULTICLEAN = true
|
||||
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
||||
# values defined in terms of make variables, as is the case for CC and
|
||||
# friends when we are called from the top level Makefile.
|
||||
AM_MAKEFLAGS = "AR_FLAGS=$(AR_FLAGS)" "CC_FOR_BUILD=$(CC_FOR_BUILD)" "CC_FOR_TARGET=$(CC_FOR_TARGET)" "CFLAGS=$(CFLAGS)" "CXXFLAGS=$(CXXFLAGS)" "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" "INSTALL=$(INSTALL)" "INSTALL_DATA=$(INSTALL_DATA)" "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" "LDFLAGS=$(LDFLAGS)" "LIBCFLAGS=$(LIBCFLAGS)" "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" "MAKE=$(MAKE)" "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" "PICFLAG=$(PICFLAG)" "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" "SHELL=$(SHELL)" "EXPECT=$(EXPECT)" "RUNTEST=$(RUNTEST)" "RUNTESTFLAGS=$(RUNTESTFLAGS)" "exec_prefix=$(exec_prefix)" "infodir=$(infodir)" "libdir=$(libdir)" "includedir=$(includedir)" "prefix=$(prefix)" "tooldir=$(tooldir)" "AR=$(AR)" "AS=$(AS)" "CC=$(CC)" "CXX=$(CXX)" "LD=$(LD)" "LIBCFLAGS=$(LIBCFLAGS)" "PICFLAG=$(PICFLAG)" "RANLIB=$(RANLIB)" "NM=$(NM)" "NM_FOR_BUILD=$(NM_FOR_BUILD)" "NM_FOR_TARGET=$(NM_FOR_TARGET)" "DESTDIR=$(DESTDIR)" "WERROR=$(WERROR)"
|
||||
AM_MAKEFLAGS = \
|
||||
"AR_FLAGS=$(AR_FLAGS)" \
|
||||
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
|
||||
"CC_FOR_TARGET=$(CC_FOR_TARGET)" \
|
||||
"CFLAGS=$(CFLAGS)" \
|
||||
"CXXFLAGS=$(CXXFLAGS)" \
|
||||
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
|
||||
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
|
||||
"INSTALL=$(INSTALL)" \
|
||||
"INSTALL_DATA=$(INSTALL_DATA)" \
|
||||
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
||||
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
|
||||
"LDFLAGS=$(LDFLAGS)" \
|
||||
"LIBCFLAGS=$(LIBCFLAGS)" \
|
||||
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
|
||||
"MAKE=$(MAKE)" \
|
||||
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
|
||||
"PICFLAG=$(PICFLAG)" \
|
||||
"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
|
||||
"SHELL=$(SHELL)" \
|
||||
"EXPECT=$(EXPECT)" \
|
||||
"RUNTEST=$(RUNTEST)" \
|
||||
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
|
||||
"exec_prefix=$(exec_prefix)" \
|
||||
"infodir=$(infodir)" \
|
||||
"libdir=$(libdir)" \
|
||||
"includedir=$(includedir)" \
|
||||
"prefix=$(prefix)" \
|
||||
"tooldir=$(tooldir)" \
|
||||
"AR=$(AR)" \
|
||||
"AS=$(AS)" \
|
||||
"CC=$(CC)" \
|
||||
"CXX=$(CXX)" \
|
||||
"LD=$(LD)" \
|
||||
"LIBCFLAGS=$(LIBCFLAGS)" \
|
||||
"PICFLAG=$(PICFLAG)" \
|
||||
"RANLIB=$(RANLIB)" \
|
||||
"NM=$(NM)" \
|
||||
"NM_FOR_BUILD=$(NM_FOR_BUILD)" \
|
||||
"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
|
||||
"DESTDIR=$(DESTDIR)" \
|
||||
"WERROR=$(WERROR)"
|
||||
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
||||
|
@ -793,10 +793,21 @@ dnl are required for compilation, add them here.
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_OS
|
||||
AC_DEFUN(GLIBCPP_CHECK_OS, [
|
||||
AC_MSG_CHECKING([for os config directory])
|
||||
AC_MSG_CHECKING([for OS config directory])
|
||||
# Currently unused, but could be useful.
|
||||
# OS_FLAGS=
|
||||
case "${target_os}" in
|
||||
aix4.[[3456789]]* | aix[[56789]]*)
|
||||
os_include_dir="config/os/aix"
|
||||
case "$CXX" in
|
||||
*pthread*)
|
||||
enable_threads='posix'
|
||||
;;
|
||||
*)
|
||||
enable_threads='no'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
aix*)
|
||||
os_include_dir="config/os/aix"
|
||||
;;
|
||||
@ -1443,12 +1454,9 @@ AC_DEFUN(GLIBCPP_ENABLE_ATOMICITY, [
|
||||
*-*-linux* | sparc*-*-*)
|
||||
ATOMICITYH=$cpu_include_dir
|
||||
;;
|
||||
*-*-aix*)
|
||||
*-*-aix* | *-*-irix*)
|
||||
ATOMICITYH=$os_include_dir
|
||||
;;
|
||||
*-*-irix*)
|
||||
ATOMICITYH=$os_include_dir
|
||||
;;
|
||||
*)
|
||||
# bit of overkill on this text...
|
||||
AC_MSG_ERROR([Atomic locking requested, but $enable_threads is an unknown thread package and atomic operations are not present in the CPU])
|
||||
@ -1746,7 +1754,7 @@ AC_DEFUN(
|
||||
_cv_gnu_make_command='' ;
|
||||
dnl Search all the common names for GNU make
|
||||
for a in "${MAKE:-make}" make gmake gnumake ; do
|
||||
if ( $a --version 2> /dev/null | grep -c GNU )
|
||||
if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
|
||||
then
|
||||
_cv_gnu_make_command=$a ;
|
||||
break;
|
||||
|
20
libstdc++-v3/aclocal.m4
vendored
20
libstdc++-v3/aclocal.m4
vendored
@ -805,10 +805,21 @@ dnl are required for compilation, add them here.
|
||||
dnl
|
||||
dnl GLIBCPP_CHECK_OS
|
||||
AC_DEFUN(GLIBCPP_CHECK_OS, [
|
||||
AC_MSG_CHECKING([for os config directory])
|
||||
AC_MSG_CHECKING([for OS config directory])
|
||||
# Currently unused, but could be useful.
|
||||
# OS_FLAGS=
|
||||
case "${target_os}" in
|
||||
aix4.[[3456789]]* | aix[[56789]]*)
|
||||
os_include_dir="config/os/aix"
|
||||
case "$CXX" in
|
||||
*pthread*)
|
||||
enable_threads='posix'
|
||||
;;
|
||||
*)
|
||||
enable_threads='no'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
aix*)
|
||||
os_include_dir="config/os/aix"
|
||||
;;
|
||||
@ -1455,12 +1466,9 @@ AC_DEFUN(GLIBCPP_ENABLE_ATOMICITY, [
|
||||
*-*-linux* | sparc*-*-*)
|
||||
ATOMICITYH=$cpu_include_dir
|
||||
;;
|
||||
*-*-aix*)
|
||||
*-*-aix* | *-*-irix*)
|
||||
ATOMICITYH=$os_include_dir
|
||||
;;
|
||||
*-*-irix*)
|
||||
ATOMICITYH=$os_include_dir
|
||||
;;
|
||||
*)
|
||||
# bit of overkill on this text...
|
||||
AC_MSG_ERROR([Atomic locking requested, but $enable_threads is an unknown thread package and atomic operations are not present in the CPU])
|
||||
@ -1758,7 +1766,7 @@ AC_DEFUN(
|
||||
_cv_gnu_make_command='' ;
|
||||
dnl Search all the common names for GNU make
|
||||
for a in "${MAKE:-make}" make gmake gnumake ; do
|
||||
if ( $a --version 2> /dev/null | grep -c GNU )
|
||||
if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
|
||||
then
|
||||
_cv_gnu_make_command=$a ;
|
||||
break;
|
||||
|
@ -52,5 +52,8 @@
|
||||
#define __off64_t off64_t
|
||||
#define __ssize_t ssize_t
|
||||
|
||||
#undef _G_USING_THUNKS
|
||||
#define _G_USING_THUNKS 0
|
||||
|
||||
#endif
|
||||
|
||||
|
2057
libstdc++-v3/configure
vendored
2057
libstdc++-v3/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,7 @@
|
||||
* produces assembly code of
|
||||
* mov 17,register0
|
||||
* call ofstream_put
|
||||
* i.e., the template function inlining really does work; g++/egcs
|
||||
* i.e., the template function inlining really does work; g++
|
||||
* requires -O3 (or -finline-functions) before it does this, though.
|
||||
*
|
||||
* pedwards 13Nov98
|
||||
|
@ -13,7 +13,7 @@
|
||||
** Locations of "the most recent snapshot is the Nth" text are
|
||||
** answers 1_1, 1_4, 4_1, 5_6.
|
||||
-->
|
||||
<!-- $Id: index.html,v 1.6 2000/09/25 21:42:14 pme Exp $ -->
|
||||
<!-- $Id: index.html,v 1.7 2000/10/21 00:51:50 jsm28 Exp $ -->
|
||||
</HEAD>
|
||||
<BODY>
|
||||
|
||||
@ -134,7 +134,7 @@ HREF="http://gcc.gnu.org/gcc-2.95/buildstat.html">portability</A>
|
||||
<HR>
|
||||
<H2><A NAME="1_3">1.3 Who's in charge of it?</A></H2>
|
||||
<P>The libstdc++ project is contributed to by several developers
|
||||
all over the world, in the same way as GCC (EGCS) or Linux.
|
||||
all over the world, in the same way as GCC or Linux.
|
||||
Benjamin Kosnik, Gabriel Dos Reis, Nathan Myers, and Ulrich
|
||||
Drepper are the lead maintainers of the CVS archive.
|
||||
</P>
|
||||
@ -654,7 +654,7 @@ HREF="http://sources.redhat.com/ml/libstdc++/1999/msg00084.html">speculation</A>
|
||||
Comments and suggestions are welcome, and may be sent to
|
||||
<A HREF="mailto:pme@sources.redhat.com">Phil Edwards</A> or
|
||||
<A HREF="mailto:gdr@gcc.gnu.org">Gabriel Dos Reis</A>.
|
||||
<BR> $Id: index.html,v 1.6 2000/09/25 21:42:14 pme Exp $
|
||||
<BR> $Id: index.html,v 1.7 2000/10/21 00:51:50 jsm28 Exp $
|
||||
</EM></P>
|
||||
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
|
||||
#[1]home
|
||||
|
||||
|
||||
libstdc++ Frequently Asked Questions
|
||||
|
||||
|
||||
The latest version of this document is always available at
|
||||
[2]http://sources.redhat.com/libstdc++/faq/.
|
||||
|
||||
|
||||
To the [3]libstdc++-v3 homepage.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
Questions
|
||||
|
||||
|
||||
1. [4]General Information
|
||||
1. [5]What is libstdc++-v3?
|
||||
2. [6]Why should I use libstdc++?
|
||||
@ -45,9 +45,9 @@
|
||||
6. [33]Is libstdc++-v3 thread-safe?
|
||||
7. [34]How do I get a copy of the ISO C++ Standard?
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
1.0 General Information
|
||||
|
||||
|
||||
1.1 What is libstdc++-v3?
|
||||
|
||||
The GNU Standard C++ Library v3, or libstdc++-2.90.x, is an ongoing
|
||||
@ -58,11 +58,11 @@
|
||||
how far the project has come, or just want the latest bleeding-edge
|
||||
code, the up-to-date source is available over anonymous CVS, and can
|
||||
even be browsed over the Web (see below).
|
||||
|
||||
|
||||
A more formal description of the V3 goals can be found in the official
|
||||
[36]design document.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
1.2 Why should I use libstdc++?
|
||||
|
||||
The completion of the ISO C++ standardization gave the C++ community a
|
||||
@ -70,51 +70,51 @@
|
||||
Library. However, all existing C++ implementations are (as the Draft
|
||||
Standard used to say) "incomplet and incorrekt," and many suffer from
|
||||
limitations of the compilers that use them.
|
||||
|
||||
|
||||
The GNU C/C++/FORTRAN/<pick-a-language> compiler (gcc, g++, etc) is
|
||||
widely considered to be one of the leading compilers in the world. Its
|
||||
development has recently been taken over by the [37]GCC team. All of
|
||||
the rapid development and near-legendary [38]portability that are the
|
||||
hallmarks of an open-source project are being applied to libstdc++.
|
||||
|
||||
|
||||
That means that all of the Standard classes and functions (such as
|
||||
string, vector<>, iostreams, and algorithms) will be freely available
|
||||
and fully compliant. Programmers will no longer need to "roll their
|
||||
own" nor be worried about platform-specific incompatabilities.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
1.3 Who's in charge of it?
|
||||
|
||||
The libstdc++ project is contributed to by several developers all over
|
||||
the world, in the same way as GCC (EGCS) or Linux. Benjamin Kosnik,
|
||||
Gabriel Dos Reis, Nathan Myers, and Ulrich Drepper are the lead
|
||||
maintainers of the CVS archive.
|
||||
|
||||
the world, in the same way as GCC or Linux. Benjamin Kosnik, Gabriel
|
||||
Dos Reis, Nathan Myers, and Ulrich Drepper are the lead maintainers of
|
||||
the CVS archive.
|
||||
|
||||
Development and discussion is held on the libstdc++ mailing list.
|
||||
Subscribing to the list, or searching the list archives, is open to
|
||||
everyone. You can read instructions for doing so on the [39]homepage.
|
||||
If you have questions, ideas, code, or are just curious, sign up!
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
1.4 How do I get libstdc++?
|
||||
|
||||
The ninth (and latest) snapshot of libstdc++-v3 is [40]available via
|
||||
ftp.
|
||||
|
||||
|
||||
The [41]homepage has instructions for retrieving the latest CVS
|
||||
sources, and for browsing the CVS sources over the web.
|
||||
|
||||
|
||||
The subset commonly known as the Standard Template Library (chapters
|
||||
23 through 25, mostly) is adapted from the SGI STL, which is also an
|
||||
ongoing work.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
1.5 When is libstdc++ going to be finished?
|
||||
|
||||
Nathan Myers gave the best of all possible answers in a Usenet article
|
||||
asking this question: Sooner, if you help.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
1.6 How do I contribute to the effort?
|
||||
|
||||
Here is [42]a page devoted to this topic. Subscribing to the mailing
|
||||
@ -124,25 +124,25 @@
|
||||
is willing to help write documentation, for example, or has found a
|
||||
bug in code that we all thought was working, is more than welcome!
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
1.7 What happened to libg++? I need that!
|
||||
|
||||
The most recent libg++ README states that libg++ is no longer being
|
||||
actively maintained. It should not be used for new projects, and is
|
||||
only being kicked along to support older code.
|
||||
|
||||
|
||||
The libg++ was designed and created when there was no Standard to
|
||||
provide guidance. Classes like linked lists are now provided for by
|
||||
list<T> and do not need to be created by genclass. (For that matter,
|
||||
templates exist now and are well-supported, whereas genclass (mostly)
|
||||
predates them.)
|
||||
|
||||
|
||||
There are other classes in libg++ that are not specified in the ISO
|
||||
Standard (e.g., statistical analysis). While there are a lot of really
|
||||
useful things that are used by a lot of people (e.g., statistics :-),
|
||||
the Standards Committee couldn't include everything, and so a lot of
|
||||
those "obvious" classes didn't get included.
|
||||
|
||||
|
||||
Since libstdc++ is an implementation of the Standard Library, we have
|
||||
no plans at this time to include non-Standard utilities in the
|
||||
implementation, however handy they are. (The extensions provided in
|
||||
@ -151,15 +151,15 @@
|
||||
entirely plausable that the "useful stuff" from libg++ might be
|
||||
extracted into an updated utilities library, but nobody has stated
|
||||
such a project yet.
|
||||
|
||||
|
||||
(The [43]Boost site houses free C++ libraries that do varying things,
|
||||
and happened to be started by members of the Standards Committee.
|
||||
Certain "useful stuff" classes will probably migrate there.)
|
||||
|
||||
|
||||
For the bold and/or desperate, the [44]GCC FAQ describes where to find
|
||||
the last libg++ source.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
1.8 What if I have more questions?
|
||||
|
||||
If you have read the README and RELEASE-NOTES files, and your question
|
||||
@ -168,14 +168,14 @@
|
||||
information is available on the homepage (including how to browse the
|
||||
list archives); to send to the list, use
|
||||
[45]libstdc++@sources.redhat.com.
|
||||
|
||||
|
||||
If you have a question that you think should be included here, or if
|
||||
you have a question about a question/answer here, contact [46]Phil
|
||||
Edwards or [47]Gabriel Dos Reis.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
2.0 Installation
|
||||
|
||||
|
||||
2.1 How do I install libstdc++-v3?
|
||||
|
||||
Complete instructions are not given here (this is a FAQ, not an
|
||||
@ -187,34 +187,34 @@
|
||||
* If you plan on hacking around with the makefiles, you will need
|
||||
the tools [48]autoconfand [49]automake.
|
||||
* GNU Make is the only make that supports these makefiles.
|
||||
|
||||
|
||||
The file [50]documentation.html provides a good overview of the steps
|
||||
necessary to build, install, and use the library. Instructions for
|
||||
configuring the library with new flags such as --enable-threads are
|
||||
there also.
|
||||
|
||||
|
||||
The top-level install.html and [51]RELEASE-NOTES files contain the
|
||||
exact build and installation instructions. You may wish to browse
|
||||
those files over CVSweb ahead of time to get a feel for what's
|
||||
required. RELEASE-NOTES is located in the ".../docs/17_intro/"
|
||||
directory of the distribution.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
2.2 Is this a drop-in replacement for the libstdc++ that's shipped with g++?
|
||||
|
||||
Yes, as of 2.90.8, it is intended as such.
|
||||
|
||||
|
||||
The installation instructions cover this in more detail, but replacing
|
||||
the older library requires rebuilding some of the code that comes with
|
||||
g++. You will need sources for the 2.95.2 compiler in order to build
|
||||
this snapshot. Building the library on its own and then using -I/-L
|
||||
will no longer work.
|
||||
|
||||
|
||||
After the 2.90.8 snapshot, the library sources were integrated into
|
||||
the compiler sources. Future releases of the compiler will ship with
|
||||
libstdc++-v3.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
2.3 What is this CVS thing that you keep mentioning?
|
||||
|
||||
The Concurrent Versions System is one of several revision control
|
||||
@ -222,47 +222,47 @@
|
||||
free (beer), and very high quality. The [52]CVS entry in the GNU
|
||||
software catalogue has a better description as well as a [53]link to
|
||||
the makers of CVS.
|
||||
|
||||
|
||||
The "anonymous client checkout" feature of CVS is similar to anonymous
|
||||
FTP in that it allows anyone to retrieve the latest libstdc++ sources.
|
||||
|
||||
|
||||
After the first of April, American users will have a "/pharmacy"
|
||||
command-line option...
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
2.4 How do I know if it works?
|
||||
|
||||
libstdc++-v3 comes with its own testsuite. You do not need to actually
|
||||
install the library ("gmake install") to run the testsuite.
|
||||
|
||||
|
||||
To run the testsuite on the library after building it, use "gmake
|
||||
check" while in your build directory. To run the testsuite on the
|
||||
library after building and installing it, use "gmake check-install"
|
||||
instead.
|
||||
|
||||
|
||||
The testsuite subdirectory in your build directory will then contain
|
||||
three files of the form YYYYMMDD-mkcheck*.txt. One of them
|
||||
(-mkcheck.txt itself) contains the results of the tests; this can be
|
||||
mailed to the list. The other files (-mkchecklog.txt and
|
||||
-mkcheckfiles.txt) contain messages from the compiler while building
|
||||
the test programs, and a list of the tests to be run, respectively.
|
||||
|
||||
|
||||
If you are using the libgcc.a-rebuilding method to enable std:: you
|
||||
might find that the testsuite starts dying with nasty linker errors.
|
||||
This is symptomatic of the rebuilt libgcc.a not being installed; the
|
||||
previous one is still in use.
|
||||
|
||||
|
||||
If you find bugs in the testsuite programs themselves, or if you think
|
||||
of a new test program that should be added to the suite, please write
|
||||
up your idea and send it to the list!
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
3.0 Platform-Specific Issues
|
||||
|
||||
|
||||
3.1 Can libstdc++-v3 be used with <my favorite compiler>?
|
||||
|
||||
Probably not. Yet.
|
||||
|
||||
|
||||
Because GCC advances so rapidly, development and testing of libstdc++
|
||||
is being done almost entirely under that compiler. If you are curious
|
||||
about whether other, lesser compilers (*grin*) support libstdc++, you
|
||||
@ -270,42 +270,42 @@
|
||||
(see above) will still require certain tools, however. Also keep in
|
||||
mind that building libstdc++ does not imply that your compiler will be
|
||||
able to use all of the features found in the C++ Standard Library.
|
||||
|
||||
|
||||
Since the goal of ISO Standardization is for all C++ implementations
|
||||
to be able to share code, the final libstdc++ should, in theory, be
|
||||
useable under any ISO-compliant compiler. It will still be targeted
|
||||
and optimized for GCC/g++, however.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
3.2 Building under Cygwin hangs/explodes!?
|
||||
|
||||
Sometimes, yes. You're probably in the middle of generating the
|
||||
numeric_limits specializations when it hangs, right? Thought so...
|
||||
|
||||
|
||||
The <limits> header and its associated library code are
|
||||
platform-specific. These files get generated from scratch during
|
||||
installation, and it is this generator that is hanging. More
|
||||
specifically, the only sure way to determine what the
|
||||
numeric_limits<T>::traps boolean should be is to actually divide by
|
||||
zero and see if it is trapped or not.
|
||||
|
||||
|
||||
Under NT, this will occasionally just hang. On those occasions when
|
||||
the test does not hang, the zero-division is in fact trapped. That
|
||||
doesn't prevent hanging elsewhere.
|
||||
|
||||
|
||||
You have two options. You can get a newer cygwin1.dll (see the Cygwin
|
||||
paragraph in the [54]installation instructions). Or you can get a
|
||||
prebuilt set of bits/std_limits.h and src/limitsMEMBERS.cc files from
|
||||
Mumit Khan's [55]Cygwin-related website.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
4.0 Known Bugs and Non-Bugs
|
||||
|
||||
|
||||
Note that this section can get rapdily outdated -- such is the nature
|
||||
of an open-source project. For the latest information, join the
|
||||
mailing list or look through recent archives. The RELEASE- NOTES and
|
||||
BUGS files are generally kept up-to-date.
|
||||
|
||||
|
||||
4.1 What works already?
|
||||
|
||||
This is a verbatim clip from the "Status" section of the RELEASE-NOTES
|
||||
@ -336,7 +336,7 @@ New:
|
||||
- group checking for num_get implemented.
|
||||
- Many, many bug fixes.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
4.2 Bugs in gcc/g++ (not libstdc++-v3)
|
||||
|
||||
This is by no means meant to be complete nor exhaustive, but mentions
|
||||
@ -363,7 +363,7 @@ count(struct __rb_tree_node_base *, struct __rb_tree_node_base *)'
|
||||
when building the locale-related source files. This has been fixed
|
||||
in GCC 2.95.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
4.3 Bugs in the C++ language/lib specification
|
||||
|
||||
Yes, unfortunately, there are some. In a [56]message to the list,
|
||||
@ -372,18 +372,18 @@ count(struct __rb_tree_node_base *, struct __rb_tree_node_base *)'
|
||||
concern the library. The list itself is [57]posted on his website.
|
||||
Developers who are having problems interpreting the Standard may wish
|
||||
to consult his notes.
|
||||
|
||||
|
||||
For those people who are not part of the ISO Library Group (i.e.,
|
||||
nearly all of us needing to read this page in the first place :-), a
|
||||
public list of the library defects is occasionally published [58]here.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
4.4 Things in libstdc++ that look like bugs
|
||||
|
||||
There are things which are not bugs in the compiler (4.2) nor the
|
||||
language specification (4.3), but aren't really bugs in libstdc++,
|
||||
either. Really!
|
||||
|
||||
|
||||
The biggest of these is the quadzillions of warnings about the library
|
||||
headers emitted when -Weffc++ is used. Making libstdc++
|
||||
"-Weffc++-clean" is not a goal of the project, for a few reasons.
|
||||
@ -391,7 +391,7 @@ count(struct __rb_tree_node_base *, struct __rb_tree_node_base *)'
|
||||
while the Standard Library isn't necessarily trying to be OO. There
|
||||
are multiple solutions under discussion.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
4.5 Aw, that's easy to fix!
|
||||
|
||||
If you have found a bug in the library and you think you have a
|
||||
@ -400,7 +400,7 @@ count(struct __rb_tree_node_base *, struct __rb_tree_node_base *)'
|
||||
you should of course send the patch to our mailing list, not the GCC
|
||||
mailing list. The libstdc++ [60]contributors' page also talks about
|
||||
how to submit patches.
|
||||
|
||||
|
||||
In addition to the description, the patch, and the ChangeLog entry, it
|
||||
is a Good Thing if you can additionally create a small test program to
|
||||
test for the presence of the bug that your patch fixes. Bugs have a
|
||||
@ -408,60 +408,60 @@ count(struct __rb_tree_node_base *, struct __rb_tree_node_base *)'
|
||||
caught immediately by the [61]testsuite -- but only if such a test
|
||||
exists.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
5.0 Miscellaneous
|
||||
|
||||
|
||||
5.1 string::iterator is not char*; vector<T>::iterator is not T*
|
||||
|
||||
If you have code that depends on container<T> iterators being
|
||||
implemented as pointer-to-T, your code is broken.
|
||||
|
||||
|
||||
While there are arguments for iterators to be implemented in that
|
||||
manner, A) they aren't very good ones in the long term, and B) they
|
||||
were never guaranteed by the Standard anyway. The type-safety achieved
|
||||
by making iterators a real class rather than a typedef for T*
|
||||
outweighs nearly all opposing arguments.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
5.2 What's next after libstdc++-v3?
|
||||
|
||||
Hopefully, not much. The goal of libstdc++-v3 is to produce a
|
||||
fully-compliant, fully-portable Standard Library. After that, we're
|
||||
mostly done: there won't be any more compliance work to do.
|
||||
|
||||
|
||||
The ISO Committee will meet periodically to review Defect Reports in
|
||||
the C++ Standard. Undoubtably some of these will result in changes to
|
||||
the Standard, which will be reflected in patches to libstdc++. Some of
|
||||
that is already happening, see 4.2. Some of those changes are being
|
||||
predicted by the library maintainers, and we add code to the library
|
||||
based on what the current proposed resolution specifies.
|
||||
|
||||
|
||||
The current libstdc++ contains extensions to the Library which must be
|
||||
explicitly requested by client code (for example, the hash tables from
|
||||
SGI). Other extensions may be added to libstdc++-v3 if they seem to be
|
||||
"standard" enough. (For example, the "long long" type from C99.)
|
||||
Bugfixes and rewrites (to improve or fix thread safety, for instance)
|
||||
will of course be a continuing task.
|
||||
|
||||
|
||||
[62]This question about the next libstdc++ prompted some brief but
|
||||
interesting [63]speculation.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
5.3 What about the STL from SGI?
|
||||
|
||||
The [64]STL from SGI is merged into libstdc++-v3 with changes as
|
||||
necessary. Currently release 3.3 is being used. Changes in the STL
|
||||
usually produce some weird bugs and lots of changes in the rest of the
|
||||
libstd++ source as we scramble to keep up. :-)
|
||||
|
||||
|
||||
In particular, string is not from SGI and makes no use of their "rope"
|
||||
class (which is included as an optional extension), nor is valarray
|
||||
and some others. Classes like vector<> are, however.
|
||||
|
||||
|
||||
The FAQ for SGI's STL (one jump off of their main page) is recommended
|
||||
reading.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
5.4 Extensions and Backward Compatibility
|
||||
|
||||
Although you can specify -I options to make the preprocessor search
|
||||
@ -472,7 +472,7 @@ count(struct __rb_tree_node_base *, struct __rb_tree_node_base *)'
|
||||
|
||||
Extensions to the library have [65]their own page.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
5.5 Compiling with "-fnew-abi"
|
||||
|
||||
The library mostly works if you compile it (and programs you link with
|
||||
@ -485,27 +485,27 @@ count(struct __rb_tree_node_base *, struct __rb_tree_node_base *)'
|
||||
base optimization, to name a few. (Note that the new ABI may change
|
||||
from one GCC snapshot to the next, so you would have to rebuild all
|
||||
your libraries each time you get a new compiler snapshot.)
|
||||
|
||||
|
||||
Towards the end of July 1999, this subject was brought up again on the
|
||||
mailing list under a different name. The related [66]thread (by the
|
||||
name HOWTO-honor-std) is very instructive. More info is at the end of
|
||||
RELEASE-NOTES.
|
||||
|
||||
|
||||
This functionality is now automated and turned on by default.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
5.6 Is libstdc++-v3 thread-safe?
|
||||
|
||||
Quick answer: no, as of 2.90.8 (ninth snapshot), the library is not
|
||||
appropriate for multithreaded access. The string class is MT-safe.
|
||||
|
||||
|
||||
This is assuming that your idea of "multithreaded" is the same as
|
||||
ours... The general question of multithreading and libstdc++-v3 is
|
||||
addressed in the chapter-specific advice for [67]Library Introduction.
|
||||
Threadsafe containers are covered in more detail in [68]the Received
|
||||
Wisdom section on containers.
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
5.7 How do I get a copy of the ISO C++ Standard?
|
||||
|
||||
Copies of the full ISO 14882 standard are available on line via the
|
||||
@ -517,14 +517,14 @@ count(struct __rb_tree_node_base *, struct __rb_tree_node_base *)'
|
||||
right [69]here. (And if you've already registered with them, clicking
|
||||
this link will take you to directly to the place where you can [70]buy
|
||||
the standard on-line.
|
||||
|
||||
|
||||
Who is your country's member body? Visit the [71]ISO homepage and find
|
||||
out!
|
||||
_________________________________________________________________
|
||||
|
||||
|
||||
Comments and suggestions are welcome, and may be sent to [72]Phil
|
||||
Edwards or [73]Gabriel Dos Reis.
|
||||
$Id: index.html,v 1.6 2000/09/25 21:42:14 pme Exp $
|
||||
$Id: index.html,v 1.7 2000/10/21 00:51:50 jsm28 Exp $
|
||||
|
||||
References
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
<TITLE>libstdc++-v3 Installation Instructions</TITLE>
|
||||
<LINK REL="home" HREF="http://sources.redhat.com/libstdc++/">
|
||||
<LINK REL=StyleSheet HREF="lib3styles.css">
|
||||
<!-- $Id: install.html,v 1.8 2000/08/28 18:41:24 pme Exp $ -->
|
||||
<!-- $Id: install.html,v 1.9 2000/10/21 00:51:49 jsm28 Exp $ -->
|
||||
</HEAD>
|
||||
<BODY>
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
|
||||
<H2><A NAME="prereqs">Tools you will need beforehand</A></H2>
|
||||
<P>You will need a recent version of g++ to compile the snapshot of
|
||||
libstdc++: gcc-2.95.2 works well, or one of the post-2.95.2 egcs
|
||||
libstdc++: gcc-2.95.2 works well, or one of the post-2.95.2 GCC
|
||||
snapshots (insert standard caveat about using snapshots rather
|
||||
than formal releases). You will need the full source
|
||||
distribution to whatever compiler release you are using. The
|
||||
@ -404,7 +404,7 @@
|
||||
Comments and suggestions are welcome, and may be sent to
|
||||
<A HREF="mailto:pme@sources.redhat.com">Phil Edwards</A> or
|
||||
<A HREF="mailto:gdr@gcc.gnu.org">Gabriel Dos Reis</A>.
|
||||
<BR> $Id: install.html,v 1.8 2000/08/28 18:41:24 pme Exp $
|
||||
<BR> $Id: install.html,v 1.9 2000/10/21 00:51:49 jsm28 Exp $
|
||||
</EM></P>
|
||||
|
||||
|
||||
|
@ -34,6 +34,8 @@
|
||||
and maintaining complex<>, sanity checking and disbursement,
|
||||
configuration architecture, libio maintenance, early math work.
|
||||
|
||||
<LI>David Edelsohn for doing the entire AIX port with his bare hands.
|
||||
|
||||
<LI>Kevin Ediger for the floating point formatting of num_put::do_put.
|
||||
|
||||
<LI>Phil Edwards for configuration hackery, documentation maintainer,
|
||||
@ -96,6 +98,7 @@
|
||||
|
||||
<UL>
|
||||
|
||||
<LI>David Gilbert
|
||||
<LI>Levente Farkas
|
||||
<LI>Jürgen Freyh
|
||||
<LI>James Kanze
|
||||
|
@ -120,14 +120,21 @@ LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
|
||||
LIBIO_INCLUDES = @LIBIO_INCLUDES@
|
||||
CSHADOW_INCLUDES = @CSHADOW_INCLUDES@
|
||||
|
||||
INCLUDES = -nostdinc++ -I$(top_builddir)/include -I$(GLIBCPP_INCLUDE_DIR) $(LIBIO_INCLUDES) $(TOPLEVEL_INCLUDES)
|
||||
INCLUDES = \
|
||||
-nostdinc++ \
|
||||
-I$(top_builddir)/include -I$(GLIBCPP_INCLUDE_DIR) \
|
||||
$(LIBIO_INCLUDES) $(TOPLEVEL_INCLUDES)
|
||||
|
||||
|
||||
libio_headers = libio.h libioP.h iolibio.h
|
||||
libio_headers = \
|
||||
libio.h libioP.h iolibio.h
|
||||
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@LIBIO_SRCS = filedoalloc.c genops.c fileops.c stdfiles.c c_codecvt.c iofclose.c iofopen.c stdio.c
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@LIBIO_SRCS = @GLIBCPP_NEED_LIBIO_TRUE@\
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@ filedoalloc.c genops.c fileops.c stdfiles.c c_codecvt.c iofclose.c \
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@ iofopen.c stdio.c
|
||||
@GLIBCPP_NEED_LIBIO_FALSE@LIBIO_SRCS =
|
||||
@GLIBCPP_NEED_WLIBIO_TRUE@LIBIO_WSRCS = wfiledoalloc.c wfileops.c wgenops.c iofwide.c
|
||||
@GLIBCPP_NEED_WLIBIO_TRUE@LIBIO_WSRCS = @GLIBCPP_NEED_WLIBIO_TRUE@\
|
||||
@GLIBCPP_NEED_WLIBIO_TRUE@ wfiledoalloc.c wfileops.c wgenops.c iofwide.c
|
||||
@GLIBCPP_NEED_WLIBIO_FALSE@LIBIO_WSRCS =
|
||||
|
||||
EXTRA_DIST = iostreamP.h
|
||||
|
@ -111,18 +111,31 @@ AUTOMAKE_OPTIONS = 1.3 cygnus
|
||||
|
||||
noinst_LTLIBRARIES = libmath.la
|
||||
|
||||
EXTRA_LONG_DOUBLE_yes = ccosl.c cexpl.c c_logl.c clog10l.c cpowl.c csinhl.c csqrtl.c ctanhl.c ctanl.c cargl.c hypotl.c signbitl.c cabsl.c
|
||||
EXTRA_LONG_DOUBLE_yes = \
|
||||
ccosl.c cexpl.c c_logl.c clog10l.c cpowl.c csinhl.c \
|
||||
csqrtl.c ctanhl.c ctanl.c cargl.c hypotl.c \
|
||||
signbitl.c cabsl.c
|
||||
|
||||
|
||||
EXTRA_DIST = ccos.c ccosf.c ccosh.c ccoshf.c ccoshl.c cexp.c cexpf.c c_log.c c_logf.c clog10.c clog10f.c cpow.c cpowf.c csin.c csinf.c csinh.c csinhf.c csinl.c csqrt.c csqrtf.c ctan.c ctanf.c ctanh.c ctanhf.c carg.c cargf.c hypot.c hypotf.c atan2f.c expf.c $(EXTRA_LONG_DOUBLE_yes)
|
||||
EXTRA_DIST = \
|
||||
ccos.c ccosf.c ccosh.c ccoshf.c ccoshl.c \
|
||||
cexp.c cexpf.c c_log.c c_logf.c clog10.c clog10f.c \
|
||||
cpow.c cpowf.c csin.c csinf.c csinh.c csinhf.c \
|
||||
csinl.c csqrt.c csqrtf.c ctan.c ctanf.c ctanh.c \
|
||||
ctanhf.c carg.c cargf.c hypot.c hypotf.c\
|
||||
atan2f.c expf.c \
|
||||
$(EXTRA_LONG_DOUBLE_yes)
|
||||
|
||||
|
||||
libmath_la_LIBADD = @LIBMATHOBJS@ $(EXTRA_LONG_DOUBLE_$(USE_COMPLEX_LONG_DOUBLE))
|
||||
libmath_la_LIBADD = \
|
||||
@LIBMATHOBJS@ \
|
||||
$(EXTRA_LONG_DOUBLE_$(USE_COMPLEX_LONG_DOUBLE))
|
||||
|
||||
|
||||
libmath_la_DEPENDENCIES = $(libmath_la_LIBADD)
|
||||
|
||||
libmath_la_SOURCES = signbit.c signbitf.c
|
||||
libmath_la_SOURCES = \
|
||||
signbit.c signbitf.c
|
||||
|
||||
|
||||
LINK = $(LIBTOOL) --mode=link "$(CCLD)" $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
@ -136,7 +149,9 @@ LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
|
||||
LIBIO_INCLUDES = @LIBIO_INCLUDES@
|
||||
CSHADOW_INCLUDES = @CSHADOW_INCLUDES@
|
||||
|
||||
INCLUDES = -I$(GLIBCPP_INCLUDE_DIR) -I$(top_builddir)/include $(TOPLEVEL_INCLUDES)
|
||||
INCLUDES = \
|
||||
-I$(GLIBCPP_INCLUDE_DIR) -I$(top_builddir)/include \
|
||||
$(TOPLEVEL_INCLUDES)
|
||||
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
|
@ -109,12 +109,12 @@ MAINT_CHARSET = latin1
|
||||
|
||||
# Cross compiler and multilib support.
|
||||
# Install a library built with a cross compiler in tooldir, not libdir.
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@gcc_version = @gcc_version@
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@toolexecdir = $(libdir)/gcc-lib/$(target_alias)
|
||||
@USE_LIBDIR_FALSE@toolexecdir = $(exec_prefix)/$(target_alias)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@toolexeclibdir = $(toolexecdir)/$(gcc_version)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_FALSE@toolexeclibdir = $(libdir)$(MULTISUBDIR)
|
||||
@USE_LIBDIR_FALSE@toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@gcc_version = @USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@@gcc_version@
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@toolexecdir = @USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@$(libdir)/gcc-lib/$(target_alias)
|
||||
@USE_LIBDIR_FALSE@toolexecdir = @USE_LIBDIR_FALSE@$(exec_prefix)/$(target_alias)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@toolexeclibdir = @USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@$(toolexecdir)/$(gcc_version)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_FALSE@toolexeclibdir = @USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_FALSE@$(libdir)$(MULTISUBDIR)
|
||||
@USE_LIBDIR_FALSE@toolexeclibdir = @USE_LIBDIR_FALSE@$(toolexecdir)/lib$(MULTISUBDIR)
|
||||
|
||||
# Need this library to both be part of libstdc++.a, and installed
|
||||
# separately too.
|
||||
@ -130,11 +130,13 @@ OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
|
||||
# These bits are all figured out from configure. Look in acinclude.m4
|
||||
# or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
|
||||
# NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
|
||||
CONFIG_CXXFLAGS = @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
|
||||
CONFIG_CXXFLAGS = \
|
||||
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
|
||||
|
||||
|
||||
# Warning flags to use.
|
||||
WARN_CXXFLAGS = @WARN_FLAGS@ $(WERROR) @WFMT_FLAGS@
|
||||
WARN_CXXFLAGS = \
|
||||
@WARN_FLAGS@ $(WERROR) @WFMT_FLAGS@
|
||||
|
||||
|
||||
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
|
||||
@ -146,20 +148,38 @@ LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
|
||||
LIBIO_INCLUDES = @LIBIO_INCLUDES@
|
||||
CSHADOW_INCLUDES = @CSHADOW_INCLUDES@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/../gcc -I$(top_srcdir)/../include $(CSHADOW_INCLUDES) $(LIBSUPCXX_INCLUDES) -I$(GLIBCPP_INCLUDE_DIR) $(CONFIG_INCLUDES) -I$(top_builddir)/include
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include \
|
||||
$(CSHADOW_INCLUDES) $(LIBSUPCXX_INCLUDES) -I$(GLIBCPP_INCLUDE_DIR) \
|
||||
$(CONFIG_INCLUDES) -I$(top_builddir)/include
|
||||
|
||||
|
||||
headers = cxxabi.h exception new new.h typeinfo
|
||||
headers = \
|
||||
cxxabi.h exception new new.h typeinfo
|
||||
|
||||
|
||||
sources = del_op.cc del_opnt.cc del_opv.cc del_opvnt.cc exception_support.cc new_handler.cc new_op.cc new_opnt.cc new_opv.cc new_opvnt.cc pure.cc tinfo.cc tinfo2.cc vec.cc
|
||||
sources = \
|
||||
del_op.cc \
|
||||
del_opnt.cc \
|
||||
del_opv.cc \
|
||||
del_opvnt.cc \
|
||||
exception_support.cc \
|
||||
new_handler.cc \
|
||||
new_op.cc \
|
||||
new_opnt.cc \
|
||||
new_opv.cc \
|
||||
new_opvnt.cc \
|
||||
pure.cc \
|
||||
tinfo.cc \
|
||||
tinfo2.cc \
|
||||
vec.cc
|
||||
|
||||
|
||||
libsupc___la_SOURCES = $(sources)
|
||||
libsupc__convenience_la_SOURCES = $(sources)
|
||||
@GXX_INCLUDE_DIR_TRUE@glibcppinstalldir = @gxx_include_dir@
|
||||
@GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_TRUE@glibcppinstalldir = $(libdir)/gcc-lib/$(target_alias)/@gcc_version@/include/g++
|
||||
@GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_FALSE@glibcppinstalldir = $(prefix)/include/g++-@libstdcxx_interface@
|
||||
@GXX_INCLUDE_DIR_TRUE@glibcppinstalldir = @GXX_INCLUDE_DIR_TRUE@@gxx_include_dir@
|
||||
@GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_TRUE@glibcppinstalldir = @GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_TRUE@$(libdir)/gcc-lib/$(target_alias)/@gcc_version@/include/g++
|
||||
@GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_FALSE@glibcppinstalldir = @GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_FALSE@$(prefix)/include/g++-@libstdcxx_interface@
|
||||
|
||||
glibcppinstall_HEADERS = $(headers)
|
||||
|
||||
@ -172,7 +192,12 @@ LIBSUPCXX_CXXFLAGS = -prefer-pic
|
||||
# set this option because CONFIG_CXXFLAGS has to be after
|
||||
# OPTIMIZE_CXXFLAGS on the compile line so that -O2 can be overridden
|
||||
# as the occasion call for it. (ie, --enable-debug)
|
||||
AM_CXXFLAGS = -fno-implicit-templates $(LIBSUPCXX_CXXFLAGS) $(WARN_CXXFLAGS) $(OPTIMIZE_CXXFLAGS) $(CONFIG_CXXFLAGS)
|
||||
AM_CXXFLAGS = \
|
||||
-fno-implicit-templates \
|
||||
$(LIBSUPCXX_CXXFLAGS) \
|
||||
$(WARN_CXXFLAGS) \
|
||||
$(OPTIMIZE_CXXFLAGS) \
|
||||
$(CONFIG_CXXFLAGS)
|
||||
|
||||
|
||||
# libstdc++ libtool notes
|
||||
@ -193,14 +218,16 @@ AM_CXXFLAGS = -fno-implicit-templates $(LIBSUPCXX_CXXFLAGS) $(WARN_CXXFLAGS)
|
||||
# correct solution is to add `--tag CXX' to LTCXXCOMPILE and maybe
|
||||
# CXXLINK, just after $(LIBTOOL), so that libtool doesn't have to
|
||||
# attempt to infer which configuration to use
|
||||
LTCXXCOMPILE = $(LIBTOOL) --tag CXX --mode=compile $(CXX) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
||||
LTCXXCOMPILE = $(LIBTOOL) --tag CXX --mode=compile $(CXX) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
||||
|
||||
|
||||
# 3) We have a problem when building the shared libstdc++ object if
|
||||
# the rules automake generates would be used. We cannot allow CXX to
|
||||
# be used in libtool since this would add -lstdc++ to the link line
|
||||
# which of course is problematic at this point.
|
||||
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" @OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" \
|
||||
@OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
|
@ -13,7 +13,15 @@ echo "running mknumeric_limits"
|
||||
case `uname` in
|
||||
CYGWIN*)
|
||||
LDFLAGS='-nodefaultlibs -lcygwin -lc -lkernel32 -lgcc' ;;
|
||||
*)
|
||||
AIX*)
|
||||
case $CXX in
|
||||
*pthread*)
|
||||
LDFLAGS='-nodefaultlibs -lgcc -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a' ;;
|
||||
*)
|
||||
LDFLAGS='-nodefaultlibs -lgcc -lc' ;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
LDFLAGS='-nodefaultlibs -lgcc -lc' ;;
|
||||
esac
|
||||
|
||||
|
@ -109,12 +109,12 @@ MAINT_CHARSET = latin1
|
||||
|
||||
# Cross compiler and multilib support.
|
||||
# Install a library built with a cross compiler in tooldir, not libdir.
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@gcc_version = @gcc_version@
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@toolexecdir = $(libdir)/gcc-lib/$(target_alias)
|
||||
@USE_LIBDIR_FALSE@toolexecdir = $(exec_prefix)/$(target_alias)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@toolexeclibdir = $(toolexecdir)/$(gcc_version)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_FALSE@toolexeclibdir = $(libdir)$(MULTISUBDIR)
|
||||
@USE_LIBDIR_FALSE@toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@gcc_version = @USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@@gcc_version@
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@toolexecdir = @USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@$(libdir)/gcc-lib/$(target_alias)
|
||||
@USE_LIBDIR_FALSE@toolexecdir = @USE_LIBDIR_FALSE@$(exec_prefix)/$(target_alias)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@toolexeclibdir = @USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_TRUE@$(toolexecdir)/$(gcc_version)
|
||||
@USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_FALSE@toolexeclibdir = @USE_LIBDIR_TRUE@@VERSION_SPECIFIC_LIBS_FALSE@$(libdir)$(MULTISUBDIR)
|
||||
@USE_LIBDIR_FALSE@toolexeclibdir = @USE_LIBDIR_FALSE@$(toolexecdir)/lib$(MULTISUBDIR)
|
||||
|
||||
toolexeclib_LTLIBRARIES = libstdc++.la
|
||||
EXTRA_LTLIBRARIES = libinst-string.la libinst-wstring.la
|
||||
@ -126,11 +126,13 @@ OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
|
||||
# These bits are all figured out from configure. Look in acinclude.m4
|
||||
# or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
|
||||
# NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
|
||||
CONFIG_CXXFLAGS = @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
|
||||
CONFIG_CXXFLAGS = \
|
||||
@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@ @CSHADOW_FLAGS@ @DEBUG_FLAGS@
|
||||
|
||||
|
||||
# Warning flags to use.
|
||||
WARN_CXXFLAGS = @WARN_FLAGS@ $(WERROR) @WFMT_FLAGS@
|
||||
WARN_CXXFLAGS = \
|
||||
@WARN_FLAGS@ $(WERROR) @WFMT_FLAGS@
|
||||
|
||||
|
||||
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
|
||||
@ -142,34 +144,119 @@ LIBSUPCXX_INCLUDES = @LIBSUPCXX_INCLUDES@
|
||||
LIBIO_INCLUDES = @LIBIO_INCLUDES@
|
||||
CSHADOW_INCLUDES = @CSHADOW_INCLUDES@
|
||||
|
||||
INCLUDES = -D_GNU_SOURCE -D_ISOC99_SOURCE -nostdinc++ $(CSHADOW_INCLUDES) $(LIBSUPCXX_INCLUDES) -I$(GLIBCPP_INCLUDE_DIR) $(LIBIO_INCLUDES) $(LIBMATH_INCLUDES) -I$(top_builddir)/include $(TOPLEVEL_INCLUDES)
|
||||
INCLUDES = \
|
||||
-D_GNU_SOURCE -D_ISOC99_SOURCE -nostdinc++ \
|
||||
$(CSHADOW_INCLUDES) $(LIBSUPCXX_INCLUDES) -I$(GLIBCPP_INCLUDE_DIR) \
|
||||
$(LIBIO_INCLUDES) $(LIBMATH_INCLUDES) -I$(top_builddir)/include \
|
||||
$(TOPLEVEL_INCLUDES)
|
||||
|
||||
|
||||
base_headers = bits/cpp_type_traits.h bits/char_traits.h bits/codecvt.h bits/basic_string.h bits/std_string.h bits/string.tcc bits/generic_shadow.h bits/std_utility.h bits/std_complex.h bits/valarray_array.h bits/valarray_array.tcc bits/valarray_meta.h bits/std_valarray.h bits/mask_array.h bits/slice.h bits/slice_array.h bits/gslice.h bits/gslice_array.h bits/indirect_array.h bits/exception_support.h bits/std_fstream.h bits/std_iomanip.h bits/ios_base.h bits/fpos.h bits/basic_ios.h bits/basic_ios.tcc bits/std_ios.h bits/std_iosfwd.h bits/std_iostream.h bits/std_istream.h bits/istream.tcc bits/std_locale.h bits/fstream.tcc bits/ostream.tcc bits/sbuf_iter.h bits/sstream.tcc bits/std_ostream.h bits/std_sstream.h bits/std_streambuf.h bits/streambuf.tcc bits/basic_file.h bits/locale_facets.h bits/locale_facets.tcc bits/localefwd.h bits/stl_pthread_alloc.h bits/pthread_allocimpl.h bits/stl_threads.h bits/stl_iterator_base.h backward/algo.h backward/algobase.h backward/alloc.h backward/bvector.h backward/defalloc.h backward/deque.h backward/function.h backward/hash_map.h backward/hash_set.h backward/hashtable.h backward/heap.h backward/iterator.h backward/list.h backward/map.h backward/multimap.h backward/new.h backward/multiset.h backward/pair.h backward/iostream.h backward/rope.h backward/set.h backward/slist.h backward/stack.h backward/tempbuf.h backward/tree.h backward/vector.h backward/fstream.h bits/std_bitset.h bits/std_deque.h bits/std_functional.h bits/std_iterator.h bits/std_list.h bits/std_map.h bits/std_memory.h bits/std_numeric.h bits/std_queue.h bits/std_set.h bits/std_stack.h bits/std_stdexcept.h bits/std_vector.h bits/stl_algo.h bits/stl_algobase.h bits/stl_alloc.h bits/stl_deque.h bits/stl_function.h bits/stl_heap.h bits/stl_iterator.h bits/stl_list.h bits/stl_map.h bits/stl_multimap.h bits/stl_multiset.h bits/stl_numeric.h bits/stl_pair.h bits/stl_queue.h bits/stl_raw_storage_iter.h bits/stl_relops.h bits/stl_set.h bits/stl_stack.h bits/stl_string_fwd.h bits/stl_tempbuf.h bits/stl_tree.h bits/stl_uninitialized.h bits/stl_vector.h bits/type_traits.h bits/stl_range_errors.h bits/std_algorithm.h bits/concept_checks.h bits/container_concepts.h bits/sequence_concepts.h bits/std_strstream.h ext/ropeimpl.h ext/stl_rope.h ext/stl_bvector.h bits/stl_config.h bits/stl_construct.h ext/stl_hashtable.h ext/stl_hash_fun.h ext/hash_map ext/hash_set ext/rope ext/slist ext/tree ext/bvector
|
||||
base_headers = \
|
||||
bits/cpp_type_traits.h bits/char_traits.h bits/codecvt.h \
|
||||
bits/basic_string.h bits/std_string.h bits/string.tcc \
|
||||
bits/generic_shadow.h bits/std_utility.h \
|
||||
bits/std_complex.h \
|
||||
bits/valarray_array.h bits/valarray_array.tcc bits/valarray_meta.h \
|
||||
bits/std_valarray.h bits/mask_array.h bits/slice.h bits/slice_array.h \
|
||||
bits/gslice.h bits/gslice_array.h bits/indirect_array.h \
|
||||
bits/exception_support.h \
|
||||
bits/std_fstream.h bits/std_iomanip.h \
|
||||
bits/ios_base.h bits/fpos.h bits/basic_ios.h bits/basic_ios.tcc \
|
||||
bits/std_ios.h bits/std_iosfwd.h bits/std_iostream.h \
|
||||
bits/std_istream.h bits/istream.tcc bits/std_locale.h \
|
||||
bits/fstream.tcc bits/ostream.tcc bits/sbuf_iter.h bits/sstream.tcc \
|
||||
bits/std_ostream.h bits/std_sstream.h bits/std_streambuf.h \
|
||||
bits/streambuf.tcc bits/basic_file.h \
|
||||
bits/locale_facets.h bits/locale_facets.tcc bits/localefwd.h \
|
||||
bits/stl_pthread_alloc.h bits/pthread_allocimpl.h \
|
||||
bits/stl_threads.h bits/stl_iterator_base.h \
|
||||
backward/algo.h backward/algobase.h backward/alloc.h \
|
||||
backward/bvector.h backward/defalloc.h backward/deque.h \
|
||||
backward/function.h backward/hash_map.h backward/hash_set.h \
|
||||
backward/hashtable.h backward/heap.h backward/iterator.h \
|
||||
backward/list.h backward/map.h backward/multimap.h backward/new.h \
|
||||
backward/multiset.h backward/pair.h backward/iostream.h \
|
||||
backward/rope.h backward/set.h backward/slist.h backward/stack.h \
|
||||
backward/tempbuf.h backward/tree.h backward/vector.h \
|
||||
backward/fstream.h \
|
||||
bits/std_bitset.h bits/std_deque.h bits/std_functional.h \
|
||||
bits/std_iterator.h bits/std_list.h \
|
||||
bits/std_map.h bits/std_memory.h bits/std_numeric.h \
|
||||
bits/std_queue.h bits/std_set.h bits/std_stack.h \
|
||||
bits/std_stdexcept.h bits/std_vector.h \
|
||||
bits/stl_algo.h bits/stl_algobase.h bits/stl_alloc.h \
|
||||
bits/stl_deque.h bits/stl_function.h \
|
||||
bits/stl_heap.h bits/stl_iterator.h bits/stl_list.h bits/stl_map.h \
|
||||
bits/stl_multimap.h bits/stl_multiset.h bits/stl_numeric.h \
|
||||
bits/stl_pair.h bits/stl_queue.h bits/stl_raw_storage_iter.h \
|
||||
bits/stl_relops.h bits/stl_set.h \
|
||||
bits/stl_stack.h bits/stl_string_fwd.h bits/stl_tempbuf.h \
|
||||
bits/stl_tree.h bits/stl_uninitialized.h bits/stl_vector.h \
|
||||
bits/type_traits.h bits/stl_range_errors.h bits/std_algorithm.h \
|
||||
bits/concept_checks.h bits/container_concepts.h \
|
||||
bits/sequence_concepts.h bits/std_strstream.h \
|
||||
ext/ropeimpl.h ext/stl_rope.h \
|
||||
ext/stl_bvector.h bits/stl_config.h bits/stl_construct.h \
|
||||
ext/stl_hashtable.h ext/stl_hash_fun.h \
|
||||
ext/hash_map ext/hash_set ext/rope ext/slist \
|
||||
ext/tree ext/bvector
|
||||
|
||||
|
||||
c_base_headers = bits/std_cassert.h bits/std_cctype.h bits/std_cerrno.h bits/std_cfloat.h bits/std_climits.h bits/std_clocale.h bits/std_cmath.h bits/std_csetjmp.h bits/std_csignal.h bits/std_cstdarg.h bits/std_cstddef.h bits/std_cstdio.h bits/std_cstdlib.h bits/std_cstring.h bits/std_ctime.h bits/std_cwchar.h bits/std_cwctype.h
|
||||
c_base_headers = \
|
||||
bits/std_cassert.h bits/std_cctype.h bits/std_cerrno.h \
|
||||
bits/std_cfloat.h bits/std_climits.h bits/std_clocale.h \
|
||||
bits/std_cmath.h bits/std_csetjmp.h bits/std_csignal.h \
|
||||
bits/std_cstdarg.h bits/std_cstddef.h bits/std_cstdio.h \
|
||||
bits/std_cstdlib.h bits/std_cstring.h bits/std_ctime.h \
|
||||
bits/std_cwchar.h bits/std_cwctype.h
|
||||
|
||||
|
||||
c_shadow_headers = assert.h ctype.h errno.h float.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h time.h wchar.h wctype.h fcntl.h libio.h iolibio.h libioP.h pthread.h iconv.h features.h bits/wrap_libio.h bits/wrap_iolibio.h bits/wrap_libioP.h bits/wrap_iconv.h bits/wrap_fcntl.h bits/wrap_pthread.h bits/wrap_features.h sys/cdefs.h
|
||||
c_shadow_headers = \
|
||||
assert.h ctype.h errno.h float.h limits.h locale.h math.h setjmp.h \
|
||||
signal.h stdarg.h stddef.h stdio.h stdlib.h string.h time.h wchar.h \
|
||||
wctype.h fcntl.h libio.h iolibio.h libioP.h pthread.h iconv.h \
|
||||
features.h \
|
||||
bits/wrap_libio.h bits/wrap_iolibio.h bits/wrap_libioP.h \
|
||||
bits/wrap_iconv.h bits/wrap_fcntl.h bits/wrap_pthread.h \
|
||||
bits/wrap_features.h \
|
||||
sys/cdefs.h
|
||||
|
||||
@GLIBCPP_USE_CSHADOW_TRUE@c_headers = $(c_base_headers) $(c_shadow_headers)
|
||||
@GLIBCPP_USE_CSHADOW_FALSE@c_headers = $(c_base_headers)
|
||||
@GLIBCPP_USE_CSHADOW_TRUE@c_headers = @GLIBCPP_USE_CSHADOW_TRUE@$(c_base_headers) $(c_shadow_headers)
|
||||
@GLIBCPP_USE_CSHADOW_FALSE@c_headers = @GLIBCPP_USE_CSHADOW_FALSE@$(c_base_headers)
|
||||
|
||||
std_headers = algorithm bitset complex deque fstream functional iomanip ios iosfwd iostream istream iterator limits list locale map memory numeric ostream queue set sstream stack stdexcept streambuf string strstream utility valarray vector cassert cctype cerrno cfloat climits clocale ciso646 cmath csetjmp csignal cstdarg cstddef cstdio cstdlib cstring ctime cwchar cwctype
|
||||
std_headers = \
|
||||
algorithm bitset complex deque fstream functional \
|
||||
iomanip ios iosfwd iostream istream iterator limits list locale \
|
||||
map memory numeric ostream queue set sstream stack stdexcept \
|
||||
streambuf string strstream utility valarray vector \
|
||||
cassert cctype cerrno cfloat climits clocale ciso646 \
|
||||
cmath csetjmp csignal cstdarg cstddef cstdio cstdlib \
|
||||
cstring ctime cwchar cwctype
|
||||
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@libio_headers = $(top_srcdir)/libio/_G_config.h $(top_srcdir)/libio/libio.h
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@libio_headers = @GLIBCPP_NEED_LIBIO_TRUE@\
|
||||
@GLIBCPP_NEED_LIBIO_TRUE@ $(top_srcdir)/libio/_G_config.h $(top_srcdir)/libio/libio.h
|
||||
@GLIBCPP_NEED_LIBIO_FALSE@libio_headers =
|
||||
|
||||
build_headers = bits/std_limits.h bits/c++config.h bits/c++io.h bits/c++threads.h bits/atomicity.h bits/os_defines.h bits/ctype_base.h bits/ctype_noninline.h bits/ctype_inline.h
|
||||
build_headers = \
|
||||
bits/std_limits.h bits/c++config.h bits/c++io.h bits/c++threads.h \
|
||||
bits/atomicity.h bits/os_defines.h \
|
||||
bits/ctype_base.h bits/ctype_noninline.h bits/ctype_inline.h
|
||||
|
||||
|
||||
headers = $(base_headers) $(c_headers)
|
||||
|
||||
sources = limitsMEMBERS.cc cmath.cc complex.cc complexf.cc complexl.cc complex_io.cc stdexcept.cc c++io.cc ios.cc stdstreams.cc strstream.cc locale.cc localename.cc codecvt.cc locale-inst.cc stl-inst.cc misc-inst.cc valarray-inst.cc string-inst.cc
|
||||
sources = \
|
||||
limitsMEMBERS.cc \
|
||||
cmath.cc \
|
||||
complex.cc complexf.cc complexl.cc complex_io.cc \
|
||||
stdexcept.cc \
|
||||
c++io.cc ios.cc stdstreams.cc strstream.cc \
|
||||
locale.cc localename.cc codecvt.cc \
|
||||
locale-inst.cc stl-inst.cc misc-inst.cc valarray-inst.cc string-inst.cc
|
||||
|
||||
|
||||
wstring_sources = wstring-inst.cc
|
||||
wstring_sources = \
|
||||
wstring-inst.cc
|
||||
|
||||
VPATH = $(top_srcdir) $(top_srcdir)/src $(GLIBCPP_INCLUDE_DIR) $(GLIBCPP_INCLUDE_DIR)/std $(C_INCLUDE_DIR)
|
||||
|
||||
@ -180,24 +267,32 @@ libstdc___la_SOURCES = $(sources)
|
||||
|
||||
libinst_wstring_la_SOURCES = $(wstring_sources)
|
||||
|
||||
libstdc___la_LIBADD = ../libmath/libmath.la ../libio/libio.la ../libsupc++/libsupc++convenience.la @libinst_wstring_la@
|
||||
libstdc___la_LIBADD = \
|
||||
../libmath/libmath.la ../libio/libio.la \
|
||||
../libsupc++/libsupc++convenience.la \
|
||||
@libinst_wstring_la@
|
||||
|
||||
|
||||
libstdc___la_LDFLAGS = -version-info 3:0:0 -lm
|
||||
|
||||
libstdc___la_DEPENDENCIES = $(libstdc___la_LIBADD)
|
||||
@GLIBCPP_USE_CSHADOW_TRUE@CSHADOW_H = $(top_builddir)/stamp-cshadow
|
||||
@GLIBCPP_USE_CSHADOW_TRUE@CSHADOW_H = @GLIBCPP_USE_CSHADOW_TRUE@$(top_builddir)/stamp-cshadow
|
||||
@GLIBCPP_USE_CSHADOW_FALSE@CSHADOW_H =
|
||||
@GXX_INCLUDE_DIR_TRUE@myincludep = @gxx_include_dir@
|
||||
@GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_TRUE@myincludep = $(libdir)/gcc-lib/$(target_alias)/@gcc_version@/include/g++
|
||||
@GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_FALSE@myincludep = $(prefix)/include/g++-@libstdcxx_interface@
|
||||
@GXX_INCLUDE_DIR_TRUE@myincludep = @GXX_INCLUDE_DIR_TRUE@@gxx_include_dir@
|
||||
@GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_TRUE@myincludep = @GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_TRUE@$(libdir)/gcc-lib/$(target_alias)/@gcc_version@/include/g++
|
||||
@GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_FALSE@myincludep = @GXX_INCLUDE_DIR_FALSE@@VERSION_SPECIFIC_LIBS_FALSE@$(prefix)/include/g++-@libstdcxx_interface@
|
||||
|
||||
# AM_CXXFLAGS needs to be in each subdirectory so that it can be
|
||||
# modified in a per-library or per-sub-library way. Need to manually
|
||||
# set this option because CONFIG_CXXFLAGS has to be after
|
||||
# OPTIMIZE_CXXFLAGS on the compile line so that -O2 can be overridden
|
||||
# as the occasion call for it. (ie, --enable-debug)
|
||||
AM_CXXFLAGS = -fno-implicit-templates $(LIBSUPCXX_CXXFLAGS) $(WARN_CXXFLAGS) $(OPTIMIZE_CXXFLAGS) $(CONFIG_CXXFLAGS)
|
||||
AM_CXXFLAGS = \
|
||||
-fno-implicit-templates \
|
||||
$(LIBSUPCXX_CXXFLAGS) \
|
||||
$(WARN_CXXFLAGS) \
|
||||
$(OPTIMIZE_CXXFLAGS) \
|
||||
$(CONFIG_CXXFLAGS)
|
||||
|
||||
|
||||
# libstdc++ libtool notes
|
||||
@ -218,14 +313,16 @@ AM_CXXFLAGS = -fno-implicit-templates $(LIBSUPCXX_CXXFLAGS) $(WARN_CXXFLAGS)
|
||||
# correct solution is to add `--tag CXX' to LTCXXCOMPILE and maybe
|
||||
# CXXLINK, just after $(LIBTOOL), so that libtool doesn't have to
|
||||
# attempt to infer which configuration to use
|
||||
LTCXXCOMPILE = $(LIBTOOL) --tag CXX --mode=compile $(CXX) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
||||
LTCXXCOMPILE = $(LIBTOOL) --tag CXX --mode=compile $(CXX) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(AM_CXXFLAGS)
|
||||
|
||||
|
||||
# 3) We have a problem when building the shared libstdc++ object if
|
||||
# the rules automake generates would be used. We cannot allow CXX to
|
||||
# be used in libtool since this would add -lstdc++ to the link line
|
||||
# which of course is problematic at this point.
|
||||
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" @OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" \
|
||||
@OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
|
Loading…
Reference in New Issue
Block a user