Commit 421173e6 by Phil Edwards Committed by Phil Edwards

acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Test for GNU ld before trying to…

acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Test for GNU ld before trying to use any of its options.

2000-07-26  Phil Edwards  <pme@sourceware.cygnus.com>

	* acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES):  Test for GNU ld
	  before trying to use any of its options.
	  (CHECK_MATH_DECL*,CHECK_BUILTIN_MATH_DECL*):  Cache tests.
	* aclocal.m4:  Regenerate.
	* configure.in:  Having found GNU make, name it.
	* configure:  Regenerate.
	* docs/install.html:  Mention possible problems with caching.
	* src/Makefile.am (CXXLINK):  Use new OPT_LDFLAGS.
	* src/Makefile.in:  Regenerate.
	* libio/Makefile.in:  Regenerate.
	* math/Makefile.in:  Regenerate.
	* Makefile.in:  Regenerate.

From-SVN: r35269
parent 79d13342
2000-07-26 Phil Edwards <pme@sourceware.cygnus.com>
* acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Test for GNU ld
before trying to use any of its options.
(CHECK_MATH_DECL*,CHECK_BUILTIN_MATH_DECL*): Cache tests.
* aclocal.m4: Regenerate.
* configure.in: Having found GNU make, name it.
* configure: Regenerate.
* docs/install.html: Mention possible problems with caching.
* src/Makefile.am (CXXLINK): Use new OPT_LDFLAGS.
* src/Makefile.in: Regenerate.
* libio/Makefile.in: Regenerate.
* math/Makefile.in: Regenerate.
* Makefile.in: Regenerate.
2000-07-26 Benjamin Kosnik <bkoz@purist.soma.redhat.com> 2000-07-26 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* src/misc-inst.cc (std): Remove instantiations. * src/misc-inst.cc (std): Remove instantiations.
......
...@@ -85,6 +85,7 @@ LN_S = @LN_S@ ...@@ -85,6 +85,7 @@ LN_S = @LN_S@
MAINT = @MAINT@ MAINT = @MAINT@
MAKEINFO = @MAKEINFO@ MAKEINFO = @MAKEINFO@
OBJDUMP = @OBJDUMP@ OBJDUMP = @OBJDUMP@
OPT_LDFLAGS = @OPT_LDFLAGS@
PACKAGE = @PACKAGE@ PACKAGE = @PACKAGE@
RANLIB = @RANLIB@ RANLIB = @RANLIB@
SECTION_FLAGS = @SECTION_FLAGS@ SECTION_FLAGS = @SECTION_FLAGS@
......
...@@ -253,11 +253,25 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -253,11 +253,25 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
dnl dnl
dnl Check to see if tricky linker opts can be used. dnl If GNU ld is in use, check to see if tricky linker opts can be used. If
dnl the native linker is in use, all variables will be defined to something
dnl safe (like an empty string).
dnl
dnl Define SECTION_LDFLAGS='-Wl,--gc-sections' if possible.
dnl Define OPT_LDFLAGS='-Wl,-O1' if possible.
dnl dnl
dnl Define SECTION_LDFLAGS='-Wl,--gc-sections' if possible
dnl GLIBCPP_CHECK_LINKER_FEATURES dnl GLIBCPP_CHECK_LINKER_FEATURES
AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
# If we're not using GNU ld, then there's no point in even trying these
# tests. Check for that first. We should have already tested for gld
# by now (in libtool), but require it now just to be safe...
AC_REQUIRE([AC_PROG_LD])
if test "$ac_cv_prog_gnu_ld" = "no"; then
SECTION_LDFLAGS=''
OPT_LDFLAGS=''
else # GNU ld it is! Joy and bunny rabbits!
# All these tests are for C++; save the language and the compiler flags. # All these tests are for C++; save the language and the compiler flags.
# Need to do this so that g++ won't try to link in libstdc++ # Need to do this so that g++ won't try to link in libstdc++
ac_test_CFLAGS="${CFLAGS+set}" ac_test_CFLAGS="${CFLAGS+set}"
...@@ -284,8 +298,11 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [ ...@@ -284,8 +298,11 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
SECTION_LDFLAGS='-Wl,--gc-sections' SECTION_LDFLAGS='-Wl,--gc-sections'
fi fi
AC_MSG_RESULT($ac_sectionLDflags) AC_MSG_RESULT($ac_sectionLDflags)
OPT_LDFLAGS='-Wl,-O1'
fi
AC_SUBST(SECTION_LDFLAGS) AC_SUBST(SECTION_LDFLAGS)
AC_SUBST(OPT_LDFLAGS)
]) ])
...@@ -302,15 +319,17 @@ dnl ASSUMES argument is a math function with ONE parameter ...@@ -302,15 +319,17 @@ dnl ASSUMES argument is a math function with ONE parameter
dnl dnl
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1 dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1, [ AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1, [
AC_MSG_CHECKING([for $1 declaration])
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for $1 declaration])
AC_TRY_COMPILE([#include <math.h>], AC_TRY_COMPILE([#include <math.h>],
[ $1(0);], [ $1(0);],
[use_$1=yes], [use_$1=no]) [glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
AC_MSG_RESULT($use_$1)
AC_LANG_RESTORE AC_LANG_RESTORE
if test x$use_$1 = x"yes"; then ])
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
if test x$glibcpp_cv_func_$1_use = x"yes"; then
AC_CHECK_FUNCS($1) AC_CHECK_FUNCS($1)
fi fi
]) ])
...@@ -329,15 +348,17 @@ dnl ASSUMES argument is a math function with TWO parameters ...@@ -329,15 +348,17 @@ dnl ASSUMES argument is a math function with TWO parameters
dnl dnl
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2 dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2, [ AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2, [
AC_MSG_CHECKING([for $1 declaration])
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for $1 declaration])
AC_TRY_COMPILE([#include <math.h>], AC_TRY_COMPILE([#include <math.h>],
[ $1(0, 0);], [ $1(0, 0);],
[use_$1=yes], [use_$1=no]) [glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
AC_MSG_RESULT($use_$1)
AC_LANG_RESTORE AC_LANG_RESTORE
if test x$use_$1 = x"yes"; then ])
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
if test x$glibcpp_cv_func_$1_use = x"yes"; then
AC_CHECK_FUNCS($1) AC_CHECK_FUNCS($1)
fi fi
]) ])
...@@ -356,15 +377,17 @@ dnl ASSUMES argument is a math function with THREE parameters ...@@ -356,15 +377,17 @@ dnl ASSUMES argument is a math function with THREE parameters
dnl dnl
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3 dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3, [ AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3, [
AC_MSG_CHECKING([for $1 declaration])
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for $1 declaration])
AC_TRY_COMPILE([#include <math.h>], AC_TRY_COMPILE([#include <math.h>],
[ $1(0, 0, 0);], [ $1(0, 0, 0);],
[use_$1=yes], [use_$1=no]) [glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
AC_MSG_RESULT($use_$1)
AC_LANG_RESTORE AC_LANG_RESTORE
if test x$use_$1 = x"yes"; then ])
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
if test x$glibcpp_cv_func_$1_use = x"yes"; then
AC_CHECK_FUNCS($1) AC_CHECK_FUNCS($1)
fi fi
]) ])
...@@ -385,21 +408,25 @@ dnl ASSUMES argument is a math function with ONE parameter ...@@ -385,21 +408,25 @@ dnl ASSUMES argument is a math function with ONE parameter
dnl dnl
dnl GLIBCPP_CHECK_BUILTIN_MATH_DECL_LINKAGE_1 dnl GLIBCPP_CHECK_BUILTIN_MATH_DECL_LINKAGE_1
AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1, [ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1, [
AC_MSG_CHECKING([for $1 declaration])
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for $1 declaration])
AC_TRY_COMPILE([#include <math.h>], AC_TRY_COMPILE([#include <math.h>],
[ $1(0);], [ $1(0);],
[use_$1=yes], [use_$1=no]) [glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
AC_MSG_RESULT($use_$1)
AC_LANG_RESTORE AC_LANG_RESTORE
if test x$use_$1 = x"yes"; then ])
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
if test x$glibcpp_cv_func_$1_use = x"yes"; then
AC_MSG_CHECKING([for $1 linkage]) AC_MSG_CHECKING([for $1 linkage])
AC_CACHE_VAL(glibcpp_cv_func_$1_link, [
AC_TRY_LINK([#include <math.h>], AC_TRY_LINK([#include <math.h>],
[ $1(0);], [ $1(0);],
[link_$1=yes], [link_$1=no]) [glibcpp_cv_func_$1_link=yes], [glibcpp_cv_func_$1_link=no])
AC_MSG_RESULT($link_$1) ])
if test x$link_$1 = x"yes"; then AC_MSG_RESULT($glibcpp_cv_func_$1_link)
if test x$glibcpp_cv_func_$1_link = x"yes"; then
ac_tr_func=HAVE_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` ac_tr_func=HAVE_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
AC_DEFINE_UNQUOTED(${ac_tr_func}) AC_DEFINE_UNQUOTED(${ac_tr_func})
fi fi
...@@ -1521,7 +1548,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also ...@@ -1521,7 +1548,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also
dnl exists, then the other make wraps the GNU make. dnl exists, then the other make wraps the GNU make.
dnl dnl
dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au> dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au>
dnl @version $Id: acinclude.m4,v 1.47 2000/07/26 06:51:37 bkoz Exp $ dnl @version 1.1 #### replaced Id string now that Id is for lib-v3; pme
dnl dnl
dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending
dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the
......
...@@ -265,11 +265,25 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -265,11 +265,25 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
dnl dnl
dnl Check to see if tricky linker opts can be used. dnl If GNU ld is in use, check to see if tricky linker opts can be used. If
dnl the native linker is in use, all variables will be defined to something
dnl safe (like an empty string).
dnl
dnl Define SECTION_LDFLAGS='-Wl,--gc-sections' if possible.
dnl Define OPT_LDFLAGS='-Wl,-O1' if possible.
dnl dnl
dnl Define SECTION_LDFLAGS='-Wl,--gc-sections' if possible
dnl GLIBCPP_CHECK_LINKER_FEATURES dnl GLIBCPP_CHECK_LINKER_FEATURES
AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
# If we're not using GNU ld, then there's no point in even trying these
# tests. Check for that first. We should have already tested for gld
# by now (in libtool), but require it now just to be safe...
AC_REQUIRE([AC_PROG_LD])
if test "$ac_cv_prog_gnu_ld" = "no"; then
SECTION_LDFLAGS=''
OPT_LDFLAGS=''
else # GNU ld it is! Joy and bunny rabbits!
# All these tests are for C++; save the language and the compiler flags. # All these tests are for C++; save the language and the compiler flags.
# Need to do this so that g++ won't try to link in libstdc++ # Need to do this so that g++ won't try to link in libstdc++
ac_test_CFLAGS="${CFLAGS+set}" ac_test_CFLAGS="${CFLAGS+set}"
...@@ -296,8 +310,11 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [ ...@@ -296,8 +310,11 @@ AC_DEFUN(GLIBCPP_CHECK_LINKER_FEATURES, [
SECTION_LDFLAGS='-Wl,--gc-sections' SECTION_LDFLAGS='-Wl,--gc-sections'
fi fi
AC_MSG_RESULT($ac_sectionLDflags) AC_MSG_RESULT($ac_sectionLDflags)
OPT_LDFLAGS='-Wl,-O1'
fi
AC_SUBST(SECTION_LDFLAGS) AC_SUBST(SECTION_LDFLAGS)
AC_SUBST(OPT_LDFLAGS)
]) ])
...@@ -314,15 +331,17 @@ dnl ASSUMES argument is a math function with ONE parameter ...@@ -314,15 +331,17 @@ dnl ASSUMES argument is a math function with ONE parameter
dnl dnl
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1 dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1, [ AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_1, [
AC_MSG_CHECKING([for $1 declaration])
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for $1 declaration])
AC_TRY_COMPILE([#include <math.h>], AC_TRY_COMPILE([#include <math.h>],
[ $1(0);], [ $1(0);],
[use_$1=yes], [use_$1=no]) [glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
AC_MSG_RESULT($use_$1)
AC_LANG_RESTORE AC_LANG_RESTORE
if test x$use_$1 = x"yes"; then ])
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
if test x$glibcpp_cv_func_$1_use = x"yes"; then
AC_CHECK_FUNCS($1) AC_CHECK_FUNCS($1)
fi fi
]) ])
...@@ -341,15 +360,17 @@ dnl ASSUMES argument is a math function with TWO parameters ...@@ -341,15 +360,17 @@ dnl ASSUMES argument is a math function with TWO parameters
dnl dnl
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2 dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2, [ AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_2, [
AC_MSG_CHECKING([for $1 declaration])
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for $1 declaration])
AC_TRY_COMPILE([#include <math.h>], AC_TRY_COMPILE([#include <math.h>],
[ $1(0, 0);], [ $1(0, 0);],
[use_$1=yes], [use_$1=no]) [glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
AC_MSG_RESULT($use_$1)
AC_LANG_RESTORE AC_LANG_RESTORE
if test x$use_$1 = x"yes"; then ])
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
if test x$glibcpp_cv_func_$1_use = x"yes"; then
AC_CHECK_FUNCS($1) AC_CHECK_FUNCS($1)
fi fi
]) ])
...@@ -368,15 +389,17 @@ dnl ASSUMES argument is a math function with THREE parameters ...@@ -368,15 +389,17 @@ dnl ASSUMES argument is a math function with THREE parameters
dnl dnl
dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3 dnl GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3
AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3, [ AC_DEFUN(GLIBCPP_CHECK_MATH_DECL_AND_LINKAGE_3, [
AC_MSG_CHECKING([for $1 declaration])
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for $1 declaration])
AC_TRY_COMPILE([#include <math.h>], AC_TRY_COMPILE([#include <math.h>],
[ $1(0, 0, 0);], [ $1(0, 0, 0);],
[use_$1=yes], [use_$1=no]) [glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
AC_MSG_RESULT($use_$1)
AC_LANG_RESTORE AC_LANG_RESTORE
if test x$use_$1 = x"yes"; then ])
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
if test x$glibcpp_cv_func_$1_use = x"yes"; then
AC_CHECK_FUNCS($1) AC_CHECK_FUNCS($1)
fi fi
]) ])
...@@ -397,21 +420,25 @@ dnl ASSUMES argument is a math function with ONE parameter ...@@ -397,21 +420,25 @@ dnl ASSUMES argument is a math function with ONE parameter
dnl dnl
dnl GLIBCPP_CHECK_BUILTIN_MATH_DECL_LINKAGE_1 dnl GLIBCPP_CHECK_BUILTIN_MATH_DECL_LINKAGE_1
AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1, [ AC_DEFUN(GLIBCPP_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1, [
AC_MSG_CHECKING([for $1 declaration])
AC_CACHE_VAL(glibcpp_cv_func_$1_use, [
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for $1 declaration])
AC_TRY_COMPILE([#include <math.h>], AC_TRY_COMPILE([#include <math.h>],
[ $1(0);], [ $1(0);],
[use_$1=yes], [use_$1=no]) [glibcpp_cv_func_$1_use=yes], [glibcpp_cv_func_$1_use=no])
AC_MSG_RESULT($use_$1)
AC_LANG_RESTORE AC_LANG_RESTORE
if test x$use_$1 = x"yes"; then ])
AC_MSG_RESULT($glibcpp_cv_func_$1_use)
if test x$glibcpp_cv_func_$1_use = x"yes"; then
AC_MSG_CHECKING([for $1 linkage]) AC_MSG_CHECKING([for $1 linkage])
AC_CACHE_VAL(glibcpp_cv_func_$1_link, [
AC_TRY_LINK([#include <math.h>], AC_TRY_LINK([#include <math.h>],
[ $1(0);], [ $1(0);],
[link_$1=yes], [link_$1=no]) [glibcpp_cv_func_$1_link=yes], [glibcpp_cv_func_$1_link=no])
AC_MSG_RESULT($link_$1) ])
if test x$link_$1 = x"yes"; then AC_MSG_RESULT($glibcpp_cv_func_$1_link)
if test x$glibcpp_cv_func_$1_link = x"yes"; then
ac_tr_func=HAVE_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` ac_tr_func=HAVE_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
AC_DEFINE_UNQUOTED(${ac_tr_func}) AC_DEFINE_UNQUOTED(${ac_tr_func})
fi fi
...@@ -1533,7 +1560,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also ...@@ -1533,7 +1560,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also
dnl exists, then the other make wraps the GNU make. dnl exists, then the other make wraps the GNU make.
dnl dnl
dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au> dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au>
dnl @version $Id: acinclude.m4,v 1.47 2000/07/26 06:51:37 bkoz Exp $ dnl @version 1.1 #### replaced Id string now that Id is for lib-v3; pme
dnl dnl
dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending
dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -200,7 +200,7 @@ if test ! -f stamp-sanity-warned; then ...@@ -200,7 +200,7 @@ if test ! -f stamp-sanity-warned; then
echo " faster => ${srcdir}/docs/configopts.html" echo " faster => ${srcdir}/docs/configopts.html"
echo " slower => <URL:http://sources.redhat.com/libstdc++/configopts.html>" echo " slower => <URL:http://sources.redhat.com/libstdc++/configopts.html>"
echo "" echo ""
echo "before proceeding with make." echo "before proceeding with ${_cv_gnu_make_command}."
echo "" echo ""
fi fi
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<TITLE>libstdc++-v3 Installation Instructions</TITLE> <TITLE>libstdc++-v3 Installation Instructions</TITLE>
<LINK REL="home" HREF="http://sources.redhat.com/libstdc++/"> <LINK REL="home" HREF="http://sources.redhat.com/libstdc++/">
<LINK REL=StyleSheet HREF="lib3styles.css"> <LINK REL=StyleSheet HREF="lib3styles.css">
<!-- $Id: install.html,v 1.4 2000/06/27 15:56:17 pme Exp $ --> <!-- $Id: install.html,v 1.5 2000/07/11 21:45:07 pme Exp $ -->
</HEAD> </HEAD>
<BODY> <BODY>
...@@ -268,6 +268,15 @@ ...@@ -268,6 +268,15 @@
message when compiling stringMAIN.cc, see <A HREF="#Werror">the message when compiling stringMAIN.cc, see <A HREF="#Werror">the
resolution at the end of this document</A>. resolution at the end of this document</A>.
</P> </P>
<P>If you are rebuilding from a previous build [attempt], some
information is kept in a cache file. This is stored in
<EM>gccbuilddir/cpu-vendor-OS/</EM> if you are building with
multilibs (the default), or in
<EM>gccbuilddir/cpu-vendor-OS/</EM>libstdc++-v3 if you have
multilibs disabled. The filename is config.cache; if previous
information is causing problems, you can delete it entirely, or
simply edit it and remove lines.
</P>
<P>You're done. Now install the rebuilt pieces with <P>You're done. Now install the rebuilt pieces with
<PRE> <PRE>
make install</PRE> make install</PRE>
...@@ -383,7 +392,7 @@ ...@@ -383,7 +392,7 @@
Comments and suggestions are welcome, and may be sent to Comments and suggestions are welcome, and may be sent to
<A HREF="mailto:pme@sources.redhat.com">Phil Edwards</A> or <A HREF="mailto:pme@sources.redhat.com">Phil Edwards</A> or
<A HREF="mailto:gdr@egcs.cygnus.com">Gabriel Dos Reis</A>. <A HREF="mailto:gdr@egcs.cygnus.com">Gabriel Dos Reis</A>.
<BR> $Id: install.html,v 1.4 2000/06/27 15:56:17 pme Exp $ <BR> $Id: install.html,v 1.5 2000/07/11 21:45:07 pme Exp $
</EM></P> </EM></P>
......
...@@ -85,6 +85,7 @@ LN_S = @LN_S@ ...@@ -85,6 +85,7 @@ LN_S = @LN_S@
MAINT = @MAINT@ MAINT = @MAINT@
MAKEINFO = @MAKEINFO@ MAKEINFO = @MAKEINFO@
OBJDUMP = @OBJDUMP@ OBJDUMP = @OBJDUMP@
OPT_LDFLAGS = @OPT_LDFLAGS@
PACKAGE = @PACKAGE@ PACKAGE = @PACKAGE@
RANLIB = @RANLIB@ RANLIB = @RANLIB@
SECTION_FLAGS = @SECTION_FLAGS@ SECTION_FLAGS = @SECTION_FLAGS@
......
...@@ -85,6 +85,7 @@ LN_S = @LN_S@ ...@@ -85,6 +85,7 @@ LN_S = @LN_S@
MAINT = @MAINT@ MAINT = @MAINT@
MAKEINFO = @MAKEINFO@ MAKEINFO = @MAKEINFO@
OBJDUMP = @OBJDUMP@ OBJDUMP = @OBJDUMP@
OPT_LDFLAGS = @OPT_LDFLAGS@
PACKAGE = @PACKAGE@ PACKAGE = @PACKAGE@
RANLIB = @RANLIB@ RANLIB = @RANLIB@
SECTION_FLAGS = @SECTION_FLAGS@ SECTION_FLAGS = @SECTION_FLAGS@
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
## USA. ## USA.
## $Id$
AUTOMAKE_OPTIONS = 1.3 gnits AUTOMAKE_OPTIONS = 1.3 gnits
MAINT_CHARSET = latin1 MAINT_CHARSET = latin1
...@@ -98,7 +100,7 @@ LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) \ ...@@ -98,7 +100,7 @@ LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) \
# rules automake generates would be used. We cannot allow CXX to be used # 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 # in libtool since this would add -lstdc++ to the link line which of
# course is impossible. # course is impossible.
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" -Wl,-O1 @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@ CXXLINK = $(LIBTOOL) --mode=link "$(CC)" @OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
headers = \ headers = \
......
...@@ -84,6 +84,7 @@ LN_S = @LN_S@ ...@@ -84,6 +84,7 @@ LN_S = @LN_S@
MAINT = @MAINT@ MAINT = @MAINT@
MAKEINFO = @MAKEINFO@ MAKEINFO = @MAKEINFO@
OBJDUMP = @OBJDUMP@ OBJDUMP = @OBJDUMP@
OPT_LDFLAGS = @OPT_LDFLAGS@
PACKAGE = @PACKAGE@ PACKAGE = @PACKAGE@
RANLIB = @RANLIB@ RANLIB = @RANLIB@
SECTION_FLAGS = @SECTION_FLAGS@ SECTION_FLAGS = @SECTION_FLAGS@
...@@ -169,7 +170,7 @@ LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) \ ...@@ -169,7 +170,7 @@ LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) \
# rules automake generates would be used. We cannot allow CXX to be used # 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 # in libtool since this would add -lstdc++ to the link line which of
# course is impossible. # course is impossible.
CXXLINK = $(LIBTOOL) --mode=link "$(CC)" -Wl,-O1 @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@ CXXLINK = $(LIBTOOL) --mode=link "$(CC)" @OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
headers = \ headers = \
bits/cpp_type_traits.h \ bits/cpp_type_traits.h \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment