This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libf2c: remove unnecessary variables from FLAGS_TO_PASS


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)' \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]