This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libf2c: remove unnecessary variables from FLAGS_TO_PASS
- To: gcc-patches at gcc dot gnu dot org
- Subject: libf2c: remove unnecessary variables from FLAGS_TO_PASS
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Mon, 2 Jul 2001 15:30:09 -0700
- Cc: Toon Moene <toon at moene dot indiv dot nluug dot nl>
libf2c's Makefiles have never had any use for $(RUNTESTFLAGS) or
$(PICFLAG), but they appear in libf2c/Makefile.in's version of
FLAGS_TO_PASS anyway. This can cause problems with nested shell
quotes. For instance
$ make check RUNTESTFLAGS="--tool_opts '-fPIC -march=i686'"
will barf, if config.status is out of date.
The simplest fix seems to be to remove these variables from
FLAGS_TO_PASS.
Patch appended. Bootstrapping on i686-linux now.
zw
* Makefile.in: Take PICFLAG and RUNTESTFLAGS out of FLAGS_TO_PASS.
===================================================================
Index: libf2c/Makefile.in
--- libf2c/Makefile.in 1999/09/14 07:44:19 1.33
+++ libf2c/Makefile.in 2001/07/02 22:28:18
@@ -59,15 +59,12 @@ CFLAGS = @CFLAGS@
# List of variables to pass to sub-makes.
# Quote this way so that it can be used to set shell variables too.
-# Currently no use for PICFLAG, RUNTESTFLAGS -- check usage.
FLAGS_TO_PASS= \
CC='$(CC)' \
CFLAGS='$(CFLAGS)' \
CPPFLAGS='$(CPPFLAGS)' \
AR='$(AR)' \
RANLIB='$(RANLIB)' \
- PICFLAG='$(PICFLAG)' \
- RUNTESTFLAGS='$(RUNTESTFLAGS)' \
prefix='$(prefix)' \
exec_prefix='$(exec_prefix)' \
libdir='$(libdir)' \