summaryrefslogtreecommitdiffstats
path: root/patches/gcc-4.1.2
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2007-07-19 19:45:50 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2007-07-19 19:45:50 +0000
commit05053283c4536624236565ce940d5a79208b0c04 (patch)
treed639ac2eb59d0b0b1a77598899e802334f3dc119 /patches/gcc-4.1.2
parent53517437e53f3e0724a528ca57a1de03b1d2c562 (diff)
downloadOSELAS.Toolchain-05053283c4536624236565ce940d5a79208b0c04.tar.gz
OSELAS.Toolchain-05053283c4536624236565ce940d5a79208b0c04.tar.xz
* 100-uclibc-conf.patch, 300-libstdc++-pic.patch:
refreshed git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@3338 f8d472c7-5700-0410-ac5a-87979cec3adf
Diffstat (limited to 'patches/gcc-4.1.2')
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch221
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/300-libstdc++-pic.patch25
2 files changed, 171 insertions, 75 deletions
diff --git a/patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch b/patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch
index 13b5f02..e31ff47 100644
--- a/patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch
+++ b/patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch
@@ -1,17 +1,50 @@
-#
-# Taken from buildroot
-#
---- gcc-4.1.0/gcc/config/t-linux-uclibc
-+++ gcc-4.1.0/gcc/config/t-linux-uclibc
+---
+ boehm-gc/configure | 5 +++++
+ configure | 2 +-
+ configure.in | 2 +-
+ contrib/regression/objs-gcc.sh | 4 ++++
+ gcc/config.gcc | 8 +++++++-
+ gcc/config/alpha/linux-elf.h | 4 ++++
+ gcc/config/arm/linux-elf.h | 4 ++++
+ gcc/config/cris/linux.h | 21 +++++++++++++++++++++
+ gcc/config/i386/linux.h | 5 +++++
+ gcc/config/i386/linux64.h | 11 +++++++++--
+ gcc/config/ia64/linux.h | 7 ++++++-
+ gcc/config/m68k/linux.h | 7 ++++++-
+ gcc/config/mips/linux.h | 7 ++++++-
+ gcc/config/pa/pa-linux.h | 7 ++++++-
+ gcc/config/rs6000/linux.h | 4 ++++
+ gcc/config/rs6000/sysv4.h | 6 ++++++
+ gcc/config/s390/linux.h | 11 +++++++++--
+ gcc/config/sh/linux.h | 9 +++++++++
+ gcc/config/sparc/linux.h | 7 ++++++-
+ gcc/config/sparc/linux64.h | 7 ++++++-
+ gcc/config/t-linux-uclibc | 5 +++++
+ libffi/configure | 5 +++++
+ libgfortran/configure | 5 +++++
+ libjava/configure | 5 +++++
+ libmudflap/configure | 5 +++++
+ libobjc/configure | 5 +++++
+ libtool.m4 | 5 +++++
+ ltconfig | 18 ++++++++++++++++++
+ zlib/configure | 5 +++++
+ 29 files changed, 183 insertions(+), 13 deletions(-)
+
+Index: gcc-4.1.2/gcc/config/t-linux-uclibc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/gcc/config/t-linux-uclibc
@@ -0,0 +1,5 @@
+# Remove glibc specific files added in t-linux
+SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES))
+
+# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc
+LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH))
---- gcc-4.1.0/gcc/config.gcc
-+++ gcc-4.1.0/gcc/config.gcc
-@@ -1887,7 +1887,7 @@ s390x-ibm-tpf*)
+Index: gcc-4.1.2/gcc/config.gcc
+===================================================================
+--- gcc-4.1.2.orig/gcc/config.gcc
++++ gcc-4.1.2/gcc/config.gcc
+@@ -1889,7 +1889,7 @@ s390x-ibm-tpf*)
;;
sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
@@ -20,7 +53,7 @@
sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
sh64-*-netbsd* | sh64l*-*-netbsd*)
tmake_file="${tmake_file} sh/t-sh sh/t-elf"
-@@ -2341,6 +2341,12 @@ m32c-*-elf*)
+@@ -2343,6 +2343,12 @@ m32c-*-elf*)
;;
esac
@@ -33,8 +66,10 @@
case ${target} in
i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1)
tmake_file="${tmake_file} i386/t-gmm_malloc"
---- gcc-4.1.0/boehm-gc/configure
-+++ gcc-4.1.0/boehm-gc/configure
+Index: gcc-4.1.2/boehm-gc/configure
+===================================================================
+--- gcc-4.1.2.orig/boehm-gc/configure
++++ gcc-4.1.2/boehm-gc/configure
@@ -4320,6 +4320,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -47,8 +82,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/configure
-+++ gcc-4.1.0/configure
+Index: gcc-4.1.2/configure
+===================================================================
+--- gcc-4.1.2.orig/configure
++++ gcc-4.1.2/configure
@@ -1133,7 +1133,7 @@ no)
;;
"")
@@ -58,8 +95,10 @@
# Enable libmudflap by default in GNU and friends.
;;
*-*-freebsd*)
---- gcc-4.1.0/configure.in
-+++ gcc-4.1.0/configure.in
+Index: gcc-4.1.2/configure.in
+===================================================================
+--- gcc-4.1.2.orig/configure.in
++++ gcc-4.1.2/configure.in
@@ -341,7 +341,7 @@ no)
;;
"")
@@ -69,8 +108,10 @@
# Enable libmudflap by default in GNU and friends.
;;
*-*-freebsd*)
---- gcc-4.1.0/contrib/regression/objs-gcc.sh
-+++ gcc-4.1.0/contrib/regression/objs-gcc.sh
+Index: gcc-4.1.2/contrib/regression/objs-gcc.sh
+===================================================================
+--- gcc-4.1.2.orig/contrib/regression/objs-gcc.sh
++++ gcc-4.1.2/contrib/regression/objs-gcc.sh
@@ -105,6 +105,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H
then
make all-gdb all-dejagnu all-ld || exit 1
@@ -82,8 +123,10 @@
elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
make bootstrap || exit 1
make install || exit 1
---- gcc-4.1.0/gcc/config/alpha/linux-elf.h
-+++ gcc-4.1.0/gcc/config/alpha/linux-elf.h
+Index: gcc-4.1.2/gcc/config/alpha/linux-elf.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/alpha/linux-elf.h
++++ gcc-4.1.2/gcc/config/alpha/linux-elf.h
@@ -27,7 +27,11 @@ Boston, MA 02110-1301, USA. */
#define SUBTARGET_EXTRA_SPECS \
{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
@@ -96,11 +139,13 @@
#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
%{O*:-O3} %{!O*:-O1} \
---- gcc-4.1.0/gcc/config/arm/linux-elf.h
-+++ gcc-4.1.0/gcc/config/arm/linux-elf.h
-@@ -51,7 +51,11 @@
+Index: gcc-4.1.2/gcc/config/arm/linux-elf.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/arm/linux-elf.h
++++ gcc-4.1.2/gcc/config/arm/linux-elf.h
+@@ -65,7 +65,11 @@
- #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
+ #define LIBGCC_SPEC "-lgcc"
+#ifdef USE_UCLIBC
+#define LINUX_TARGET_INTERPRETER "/lib/ld-uClibc.so.0"
@@ -110,8 +155,10 @@
#define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
%{b} \
---- gcc-4.1.0/gcc/config/cris/linux.h
-+++ gcc-4.1.0/gcc/config/cris/linux.h
+Index: gcc-4.1.2/gcc/config/cris/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/cris/linux.h
++++ gcc-4.1.2/gcc/config/cris/linux.h
@@ -73,6 +73,25 @@ Boston, MA 02110-1301, USA. */
#undef CRIS_DEFAULT_CPU_VERSION
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
@@ -147,8 +194,10 @@
/* Node: Run-time Target */
---- gcc-4.1.0/gcc/config/i386/linux.h
-+++ gcc-4.1.0/gcc/config/i386/linux.h
+Index: gcc-4.1.2/gcc/config/i386/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/i386/linux.h
++++ gcc-4.1.2/gcc/config/i386/linux.h
@@ -107,6 +107,11 @@ Boston, MA 02110-1301, USA. */
#define LINK_EMULATION "elf_i386"
#define DYNAMIC_LINKER "/lib/ld-linux.so.2"
@@ -161,8 +210,10 @@
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
{ "link_emulation", LINK_EMULATION },\
---- gcc-4.1.0/gcc/config/i386/linux64.h
-+++ gcc-4.1.0/gcc/config/i386/linux64.h
+Index: gcc-4.1.2/gcc/config/i386/linux64.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/i386/linux64.h
++++ gcc-4.1.2/gcc/config/i386/linux64.h
@@ -54,14 +54,21 @@ Boston, MA 02110-1301, USA. */
When the -shared link option is used a final link is not being
done. */
@@ -187,8 +238,10 @@
%{static:-static}}"
/* Similar to standard Linux, but adding -ffast-math support. */
---- gcc-4.1.0/gcc/config/ia64/linux.h
-+++ gcc-4.1.0/gcc/config/ia64/linux.h
+Index: gcc-4.1.2/gcc/config/ia64/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/ia64/linux.h
++++ gcc-4.1.2/gcc/config/ia64/linux.h
@@ -37,13 +37,18 @@ do { \
/* Define this for shared library support because it isn't in the main
linux.h file. */
@@ -208,9 +261,11 @@
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
%{static:-static}}"
-
---- gcc-4.1.0/gcc/config/m68k/linux.h
-+++ gcc-4.1.0/gcc/config/m68k/linux.h
+ #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
+Index: gcc-4.1.2/gcc/config/m68k/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/m68k/linux.h
++++ gcc-4.1.2/gcc/config/m68k/linux.h
@@ -123,12 +123,17 @@ Boston, MA 02110-1301, USA. */
/* If ELF is the default format, we should not use /lib/elf. */
@@ -230,8 +285,10 @@
%{static}}"
/* For compatibility with linux/a.out */
---- gcc-4.1.0/gcc/config/mips/linux.h
-+++ gcc-4.1.0/gcc/config/mips/linux.h
+Index: gcc-4.1.2/gcc/config/mips/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/mips/linux.h
++++ gcc-4.1.2/gcc/config/mips/linux.h
@@ -105,6 +105,11 @@ Boston, MA 02110-1301, USA. */
/* Borrowed from sparc/linux.h */
@@ -253,8 +310,10 @@
%{static:-static}}}"
#undef SUBTARGET_ASM_SPEC
---- gcc-4.1.0/gcc/config/pa/pa-linux.h
-+++ gcc-4.1.0/gcc/config/pa/pa-linux.h
+Index: gcc-4.1.2/gcc/config/pa/pa-linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/pa/pa-linux.h
++++ gcc-4.1.2/gcc/config/pa/pa-linux.h
@@ -49,13 +49,18 @@ Boston, MA 02110-1301, USA. */
/* Define this for shared library support because it isn't in the main
linux.h file. */
@@ -275,8 +334,10 @@
%{static:-static}}"
/* glibc's profiling functions don't need gcc to allocate counters. */
---- gcc-4.1.0/gcc/config/rs6000/linux.h
-+++ gcc-4.1.0/gcc/config/rs6000/linux.h
+Index: gcc-4.1.2/gcc/config/rs6000/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/rs6000/linux.h
++++ gcc-4.1.2/gcc/config/rs6000/linux.h
@@ -72,7 +72,11 @@
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
@@ -289,8 +350,10 @@
#define LINK_GCC_C_SEQUENCE_SPEC \
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
---- gcc-4.1.0/gcc/config/rs6000/sysv4.h
-+++ gcc-4.1.0/gcc/config/rs6000/sysv4.h
+Index: gcc-4.1.2/gcc/config/rs6000/sysv4.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/rs6000/sysv4.h
++++ gcc-4.1.2/gcc/config/rs6000/sysv4.h
@@ -866,6 +866,7 @@ extern int fixuplabelno;
mcall-linux : %(link_os_linux) ; \
mcall-gnu : %(link_os_gnu) ; \
@@ -318,8 +381,10 @@
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
---- gcc-4.1.0/gcc/config/s390/linux.h
-+++ gcc-4.1.0/gcc/config/s390/linux.h
+Index: gcc-4.1.2/gcc/config/s390/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/s390/linux.h
++++ gcc-4.1.2/gcc/config/s390/linux.h
@@ -77,6 +77,13 @@ Software Foundation, 51 Franklin Street,
#define MULTILIB_DEFAULTS { "m31" }
#endif
@@ -343,10 +408,12 @@
+ %{m31:-dynamic-linker " ELF31_DYNAMIC_LINKER "} \
+ %{m64:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}}}"
+ #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
- #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
---- gcc-4.1.0/gcc/config/sh/linux.h
-+++ gcc-4.1.0/gcc/config/sh/linux.h
+Index: gcc-4.1.2/gcc/config/sh/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/sh/linux.h
++++ gcc-4.1.2/gcc/config/sh/linux.h
@@ -56,12 +56,21 @@ Boston, MA 02110-1301, USA. */
#undef SUBTARGET_LINK_EMUL_SUFFIX
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
@@ -369,8 +436,10 @@
/* Output assembler code to STREAM to call the profiler. */
---- gcc-4.1.0/gcc/config/sparc/linux.h
-+++ gcc-4.1.0/gcc/config/sparc/linux.h
+Index: gcc-4.1.2/gcc/config/sparc/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/sparc/linux.h
++++ gcc-4.1.2/gcc/config/sparc/linux.h
@@ -125,6 +125,11 @@ Boston, MA 02110-1301, USA. */
/* If ELF is the default format, we should not use /lib/elf. */
@@ -392,8 +461,10 @@
%{static:-static}}}"
/* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
---- gcc-4.1.0/gcc/config/sparc/linux64.h
-+++ gcc-4.1.0/gcc/config/sparc/linux64.h
+Index: gcc-4.1.2/gcc/config/sparc/linux64.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/sparc/linux64.h
++++ gcc-4.1.2/gcc/config/sparc/linux64.h
@@ -162,12 +162,17 @@ Boston, MA 02110-1301, USA. */
{ "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
{ "link_arch", LINK_ARCH_SPEC },
@@ -413,8 +484,10 @@
%{static:-static}}} \
"
---- gcc-4.1.0/libffi/configure
-+++ gcc-4.1.0/libffi/configure
+Index: gcc-4.1.2/libffi/configure
+===================================================================
+--- gcc-4.1.2.orig/libffi/configure
++++ gcc-4.1.2/libffi/configure
@@ -3457,6 +3457,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -427,8 +500,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libgfortran/configure
-+++ gcc-4.1.0/libgfortran/configure
+Index: gcc-4.1.2/libgfortran/configure
+===================================================================
+--- gcc-4.1.2.orig/libgfortran/configure
++++ gcc-4.1.2/libgfortran/configure
@@ -3699,6 +3699,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -441,8 +516,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libjava/configure
-+++ gcc-4.1.0/libjava/configure
+Index: gcc-4.1.2/libjava/configure
+===================================================================
+--- gcc-4.1.2.orig/libjava/configure
++++ gcc-4.1.2/libjava/configure
@@ -5137,6 +5137,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -455,8 +532,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libmudflap/configure
-+++ gcc-4.1.0/libmudflap/configure
+Index: gcc-4.1.2/libmudflap/configure
+===================================================================
+--- gcc-4.1.2.orig/libmudflap/configure
++++ gcc-4.1.2/libmudflap/configure
@@ -5382,6 +5382,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -469,8 +548,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libobjc/configure
-+++ gcc-4.1.0/libobjc/configure
+Index: gcc-4.1.2/libobjc/configure
+===================================================================
+--- gcc-4.1.2.orig/libobjc/configure
++++ gcc-4.1.2/libobjc/configure
@@ -3312,6 +3312,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -483,8 +564,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libtool.m4
-+++ gcc-4.1.0/libtool.m4
+Index: gcc-4.1.2/libtool.m4
+===================================================================
+--- gcc-4.1.2.orig/libtool.m4
++++ gcc-4.1.2/libtool.m4
@@ -743,6 +743,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -497,8 +580,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
---- gcc-4.1.0/ltconfig
-+++ gcc-4.1.0/ltconfig
+Index: gcc-4.1.2/ltconfig
+===================================================================
+--- gcc-4.1.2.orig/ltconfig
++++ gcc-4.1.2/ltconfig
@@ -603,6 +603,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
@@ -531,8 +616,10 @@
netbsd*)
need_lib_prefix=no
need_version=no
---- gcc-4.1.0/zlib/configure
-+++ gcc-4.1.0/zlib/configure
+Index: gcc-4.1.2/zlib/configure
+===================================================================
+--- gcc-4.1.2.orig/zlib/configure
++++ gcc-4.1.2/zlib/configure
@@ -3426,6 +3426,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
diff --git a/patches/gcc-4.1.2/generic/uclibc/300-libstdc++-pic.patch b/patches/gcc-4.1.2/generic/uclibc/300-libstdc++-pic.patch
index 560bcb2..0330d0c 100644
--- a/patches/gcc-4.1.2/generic/uclibc/300-libstdc++-pic.patch
+++ b/patches/gcc-4.1.2/generic/uclibc/300-libstdc++-pic.patch
@@ -1,8 +1,15 @@
# DP: Build and install libstdc++_pic.a library.
---- gcc/libstdc++-v3/src/Makefile.am
-+++ gcc/libstdc++-v3/src/Makefile.am
-@@ -214,6 +214,12 @@
+---
+ libstdc++-v3/src/Makefile.am | 6 ++++++
+ libstdc++-v3/src/Makefile.in | 10 +++++++++-
+ 2 files changed, 15 insertions(+), 1 deletion(-)
+
+Index: gcc-4.1.2/libstdc++-v3/src/Makefile.am
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/src/Makefile.am
++++ gcc-4.1.2/libstdc++-v3/src/Makefile.am
+@@ -234,6 +234,12 @@ CXXLINK = $(LIBTOOL) --tag CXX --mode=li
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@
@@ -15,9 +22,11 @@
# Added bits to build debug library.
if GLIBCXX_BUILD_DEBUG
all-local: build_debug
---- gcc/libstdc++-v3/src/Makefile.in
-+++ gcc/libstdc++-v3/src/Makefile.in
-@@ -627,7 +627,7 @@
+Index: gcc-4.1.2/libstdc++-v3/src/Makefile.in
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/src/Makefile.in
++++ gcc-4.1.2/libstdc++-v3/src/Makefile.in
+@@ -627,7 +627,7 @@ info-am:
install-data-am: install-data-local
@@ -26,7 +35,7 @@
install-info: install-info-am
-@@ -660,6 +660,7 @@
+@@ -660,6 +660,7 @@ uninstall-am: uninstall-info-am uninstal
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-data-local install-exec \
@@ -34,7 +43,7 @@
install-exec-am install-info install-info-am install-man \
install-strip install-toolexeclibLTLIBRARIES installcheck \
installcheck-am installdirs maintainer-clean \
-@@ -743,6 +743,13 @@
+@@ -760,6 +761,13 @@ build_debug: stamp-debug
install_debug:
(cd ${debugdir} && $(MAKE) \
toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)