summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc2/cpp/usr.bin.cpp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/gcc2/cpp/usr.bin.cpp.sh')
-rw-r--r--gnu/usr.bin/gcc2/cpp/usr.bin.cpp.sh9
1 files changed, 8 insertions, 1 deletions
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'"
;;