Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/usr.bin/gcc3/backend avoid trying to do "for f in ; do ....



details:   https://anonhg.NetBSD.org/src/rev/e487686d1358
branches:  trunk
changeset: 554064:e487686d1358
user:      dmcmahill <dmcmahill%NetBSD.org@localhost>
date:      Sat Oct 25 02:42:00 2003 +0000

description:
avoid trying to do "for f in ; do ..." which breaks while crosscompiling
on certain non-netbsd host.  Approved by Matthew Green, mrg at netbsd.

diffstat:

 gnu/usr.bin/gcc3/backend/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r cc65d33e5b96 -r e487686d1358 gnu/usr.bin/gcc3/backend/Makefile
--- a/gnu/usr.bin/gcc3/backend/Makefile Sat Oct 25 01:18:01 2003 +0000
+++ b/gnu/usr.bin/gcc3/backend/Makefile Sat Oct 25 02:42:00 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2003/10/16 03:33:28 lukem Exp $
+#      $NetBSD: Makefile,v 1.9 2003/10/25 02:42:00 dmcmahill Exp $
 
 NOLINKLIB=     # defined
 NOLINT=                # defined
@@ -115,8 +115,8 @@
 
 CLEANFILES+=   options.h
 options.h: Makefile
-       for f in $(lang_options_files); do \
-               echo "#include \"$$f\""; \
+       for f in $(lang_options_files) ""; do \
+               if [ -n "$$f" ] ; then echo "#include \"$$f\""; fi; \
        done | sed 's|$(GNUHOSTDIST)/gcc/||' > options.h
 
 



Home | Main Index | Thread Index | Old Index