From a2cc19e091e160b0b7e1d9255320fda235926ff3 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Sat, 25 Oct 2003 02:42:00 +0000 Subject: [PATCH] avoid trying to do "for f in ; do ..." which breaks while crosscompiling on certain non-netbsd host. Approved by Matthew Green, mrg at netbsd. --- gnu/usr.bin/gcc3/backend/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/gcc3/backend/Makefile b/gnu/usr.bin/gcc3/backend/Makefile index 2f84255f6875..426f5e27eee0 100644 --- a/gnu/usr.bin/gcc3/backend/Makefile +++ b/gnu/usr.bin/gcc3/backend/Makefile @@ -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 @@ tm_p.h: Makefile 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