This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
propagate original LD down to multilib configure
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, java-patch at gcc dot gnu dot org
- Date: 20 Feb 2003 06:05:19 -0300
- Subject: propagate original LD down to multilib configure
- Organization: GCC Team, Red Hat
This patch:
2002-05-08 Alexandre Oliva <aoliva at redhat dot com>
* configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
script entry, and set LD to it when configuring multilibs.
* configure: Rebuilt.
didn't succeed in its intention, because ORIGINAL_LD_FOR_MULTILIBS was
set in configure, and accessed in config.status. I was missing the
bit to actually propagate it to config.status, which is what the
following patch accomplishes. I'm checking this in mainline and 3.3,
tested on mips-sgi-irix6.5 (that was a platform that exposed the
problem in the first place).
Index: libiberty/ChangeLog
from Alexandre Oliva <aoliva at redhat dot com>
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
Index: libiberty/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/configure.in,v
retrieving revision 1.55
diff -u -p -r1.55 configure.in
--- libiberty/configure.in 30 Jan 2003 19:02:12 -0000 1.55
+++ libiberty/configure.in 20 Feb 2003 09:01:51 -0000
@@ -466,5 +466,6 @@ with_build_subdir=${with_build_subdir}
with_multisubdir=${with_multisubdir}
ac_configure_args="--enable-multilib ${ac_configure_args}"
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
libiberty_topdir=${libiberty_topdir}
)
Index: libstdc++-v3/ChangeLog
from Alexandre Oliva <aoliva at redhat dot com>
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
Index: libstdc++-v3/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.in,v
retrieving revision 1.116
diff -u -p -r1.116 configure.in
--- libstdc++-v3/configure.in 23 Jan 2003 17:21:09 -0000 1.116
+++ libstdc++-v3/configure.in 20 Feb 2003 09:01:52 -0000
@@ -496,6 +496,7 @@ CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
glibcpp_basedir=${glibcpp_basedir}
CC="${CC}"
CXX="${CXX}"
+ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
)
dnl In autoconf 2.5x, AC_OUTPUT is replaced by three AC_ macros:
dnl AC_CONFIG_FILES(Makefile \
Index: zlib/ChangeLog.gcj
from Alexandre Oliva <aoliva at redhat dot com>
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
Index: zlib/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/zlib/configure.in,v
retrieving revision 1.17
diff -u -p -r1.17 configure.in
--- zlib/configure.in 20 Feb 2003 02:34:26 -0000 1.17
+++ zlib/configure.in 20 Feb 2003 09:01:53 -0000
@@ -152,4 +152,5 @@ CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
zlib_basedir=${zlib_basedir}
CC="${CC}"
CXX="${CXX}"
+ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
)
Index: boehm-gc/ChangeLog
from Alexandre Oliva <aoliva at redhat dot com>
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
Index: boehm-gc/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/configure.in,v
retrieving revision 1.44
diff -u -p -r1.44 configure.in
--- boehm-gc/configure.in 28 Jan 2003 01:44:37 -0000 1.44
+++ boehm-gc/configure.in 20 Feb 2003 09:01:54 -0000
@@ -301,5 +301,6 @@ ac_configure_args="${multilib_arg} ${ac_
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
gc_basedir=${gc_basedir}
CC="${CC}"
+ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
DEFS="$DEFS"
)
Index: libffi/ChangeLog.libgcj
from Alexandre Oliva <aoliva at redhat dot com>
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
Index: libffi/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libffi/configure.in,v
retrieving revision 1.36
diff -u -p -r1.36 configure.in
--- libffi/configure.in 1 Feb 2003 11:16:19 -0000 1.36
+++ libffi/configure.in 20 Feb 2003 09:01:54 -0000
@@ -198,6 +198,7 @@ CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
libffi_basedir=${libffi_basedir}
CC="${CC}"
DEFS="$DEFS"
+ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
test ! -d include && mkdir include
test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
Index: libjava/ChangeLog
from Alexandre Oliva <aoliva at redhat dot com>
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
Index: libjava/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.in,v
retrieving revision 1.150
diff -u -p -r1.150 configure.in
--- libjava/configure.in 13 Feb 2003 02:51:26 -0000 1.150
+++ libjava/configure.in 20 Feb 2003 09:02:00 -0000
@@ -1086,4 +1086,5 @@ CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
libgcj_basedir=${libgcj_basedir}
CC="${CC}"
CXX="${CXX}"
+ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
)
Index: libf2c/ChangeLog
from Alexandre Oliva <aoliva at redhat dot com>
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
Index: libf2c/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libf2c/configure.in,v
retrieving revision 1.34
diff -u -p -r1.34 configure.in
--- libf2c/configure.in 16 Dec 2002 18:22:45 -0000 1.34
+++ libf2c/configure.in 20 Feb 2003 09:02:02 -0000
@@ -1,5 +1,6 @@
# Process this file with autoconf to produce a configure script.
-# Copyright (C) 1995, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1997, 1998, 1999, 2002, 2003
+# Free Software Foundation, Inc.
# Contributed by Dave Love (d dot love at dl dot ac dot uk).
#
#This file is part of GNU Fortran.
@@ -109,6 +110,7 @@ with_multisubdir=${with_multisubdir}
ac_configure_args="--enable-multilib ${ac_configure_args}"
toplevel_srcdir=${toplevel_srcdir}
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
)
Index: libobjc/ChangeLog
from Alexandre Oliva <aoliva at redhat dot com>
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
Index: libobjc/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/configure.in,v
retrieving revision 1.19
diff -u -p -r1.19 configure.in
--- libobjc/configure.in 16 Dec 2002 18:22:53 -0000 1.19
+++ libobjc/configure.in 20 Feb 2003 09:02:02 -0000
@@ -1,5 +1,6 @@
# Process this file with autoconf to produce a configure script.
-# Copyright (C) 1995, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1997, 1998, 1999, 2002, 2003
+# Free Software Foundation, Inc.
# Contributed by Dave Love (d dot love at dl dot ac dot uk).
#
#This file is part of GNU Objective C.
@@ -115,6 +116,7 @@ with_multisubdir=${with_multisubdir}
ac_configure_args="--enable-multilib ${ac_configure_args}"
toplevel_srcdir=${toplevel_srcdir}
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist Professional serial bug killer