This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc compile-time performance (on sparc solaris)
Op ma 20-05-2002, om 13:15 schreef Toon Moene:
> Alexandre Oliva wrote:
>
> > On May 20, 2002, Toon Moene <toon@moene.indiv.nluug.nl> wrote:
>
> > > LIBTOOL = $(SHELL) $(top_builddir)/libtool
> >
> > > and this is what's in (sourcedir)/libf2c/Makefile.in:
> >
> > > LIBTOOL = @LIBTOOL@
> >
> > > Unfortunately, I do not know who's responsible for this substitution ...
> >
> > It's configure. The problem is that libf2c/Makefile.in has SHELL =
> > /bin/sh, instead of the SHELL = @SHELL@, as in most Makefiles. Ditto
> > for libobjc/Makefile.in.
Hmmm, let's grep -wr "SHELL =" */Make* :
boehm-gc/Makefile.in:SHELL = @SHELL@
fastjar/Makefile.in:SHELL = @SHELL@
gcc/Makefile.in:SHELL = /bin/sh
libf2c/Makefile.in:SHELL = /bin/sh
libffi/Makefile.in:SHELL = @SHELL@
libffi/Makefile.in:SHELL = @SHELL@
libiberty/Makefile.in:SHELL = @SHELL@
libjava/Makefile.in:SHELL = @SHELL@
libobjc/Makefile.in:SHELL = /bin/sh
libstdc++-v3/Makefile.in:SHELL = @SHELL@
zlib/Makefile.in:SHELL = @SHELL@
> > Hmm... I think I saw a patch floating
> > around that fixed this problem in at least one of these Makefiles...
> OK - do you think the following would be an adequate solution for the
> problem (as far as libf2c is concerned) ?
Or this patch?
Greetz
Steven
Index: gcc/Makefile.in
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.877
diff -u -r1.877 Makefile.in
--- gcc/Makefile.in 20 May 2002 07:22:27 -0000 1.877
+++ gcc/Makefile.in 20 May 2002 11:38:59 -0000
@@ -111,7 +111,7 @@
AR_FLAGS = rc
DLLTOOL = dlltool
RANLIB = @RANLIB@
-SHELL = /bin/sh
+SHELL = @SHELL@
# pwd command to use. Allow user to override default by setting PWDCMD in
# the environment to account for automounters. The make variable must not
# be called PWDCMD, otherwise the value set here is passed to make
Index: libf2c/Makefile.in
===================================================================
RCS file: /cvsroot/gcc/gcc/libf2c/Makefile.in,v
retrieving revision 1.50
diff -u -r1.50 Makefile.in
--- libf2c/Makefile.in 16 May 2002 17:42:48 -0000 1.50
+++ libf2c/Makefile.in 20 May 2002 11:38:59 -0000
@@ -19,7 +19,7 @@
#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#02111-1307, USA.
-SHELL = /bin/sh
+SHELL = @SHELL@
PWD = $${PWDCMD-pwd}
MAKEOVERRIDES=
.NOEXPORTS:
Index: libobjc/Makefile.in
===================================================================
RCS file: /cvsroot/gcc/gcc/libobjc/Makefile.in,v
retrieving revision 1.20
diff -u -r1.20 Makefile.in
--- libobjc/Makefile.in 11 Feb 2002 18:10:05 -0000 1.20
+++ libobjc/Makefile.in 20 May 2002 11:39:01 -0000
@@ -22,7 +22,7 @@
#Makefile.in files. Some of this stuff may be unnecessary and
#worthless.
-SHELL = /bin/sh
+SHELL = @SHELL@
MAKEOVERRIDES=
#### Start of system configuration section. ####