From f8d5b031c2020a0490948d05c12edc0a4e3a8177 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 26 Sep 2001 06:35:10 +0000 Subject: [PATCH] Use the padantically correct compiler for preprocessing --- busybox/Makefile | 2 +- busybox/applets/busybox.sh | 2 +- busybox/busybox.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/busybox/Makefile b/busybox/Makefile index e09dd06b3..3771c483b 100644 --- a/busybox/Makefile +++ b/busybox/Makefile @@ -279,7 +279,7 @@ CFLAGS += $(CFLAGS_EXTRA) all: applet_source_list busybox busybox.links doc applet_source_list: busybox.sh Config.h - (echo -n "APPLET_SOURCES := "; BB_SRC_DIR=$(BB_SRC_DIR) $(SHELL) $^) > $@ + (echo -n "APPLET_SOURCES := "; CC="$(CC)" BB_SRC_DIR="$(BB_SRC_DIR)" $(SHELL) $^) > $@ doc: olddoc diff --git a/busybox/applets/busybox.sh b/busybox/applets/busybox.sh index 7c3deb20e..9ab0f4bdb 100755 --- a/busybox/applets/busybox.sh +++ b/busybox/applets/busybox.sh @@ -4,7 +4,7 @@ export LC_ALL=POSIX export LC_CTYPE=POSIX RAW=` \ - gcc -E -dM ${1:-Config.h} | \ + $CC -E -dM ${1:-Config.h} | \ sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\/\1.c/gp;' \ | tr A-Z a-z | sort ` diff --git a/busybox/busybox.sh b/busybox/busybox.sh index 7c3deb20e..9ab0f4bdb 100755 --- a/busybox/busybox.sh +++ b/busybox/busybox.sh @@ -4,7 +4,7 @@ export LC_ALL=POSIX export LC_CTYPE=POSIX RAW=` \ - gcc -E -dM ${1:-Config.h} | \ + $CC -E -dM ${1:-Config.h} | \ sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\/\1.c/gp;' \ | tr A-Z a-z | sort ` -- 2.25.1