From 9c93cdd301e42a5f7cfa5ae2d69d4a8a0315e4a7 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 13 Dec 1994 11:06:25 +0000 Subject: Handle GCC's include-related options which take an argument, (almost) as suggested by Giles Lean. --- gnu/usr.bin/gcc2/cpp/usr.bin.cpp.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gnu/usr.bin/gcc2/cpp/usr.bin.cpp.sh') diff --git a/gnu/usr.bin/gcc2/cpp/usr.bin.cpp.sh b/gnu/usr.bin/gcc2/cpp/usr.bin.cpp.sh index 720b202124c..12f8aaf39ce 100644 --- a/gnu/usr.bin/gcc2/cpp/usr.bin.cpp.sh +++ b/gnu/usr.bin/gcc2/cpp/usr.bin.cpp.sh @@ -49,8 +49,11 @@ OPTS="" INCS="-nostdinc" FOUNDFILES=no -for A +while [ $# -gt 0 ] do + A="$1" + shift + case $A in -nostdinc) NSI=yes @@ -63,6 +66,10 @@ do -U__GNUC__) ALST=`echo $ALST | sed -e 's/-D__GNUC__//'` ;; + -imacros|-include|-idirafter|-iprefix|-iwithprefix) + INCS="$INCS '$A' '$1'" + shift + ;; -*) OPTS="$OPTS '$A'" ;; -- cgit