From: Eric Andersen Date: Wed, 26 Sep 2001 06:20:54 +0000 (-0000) Subject: use the pedantically correct compiler for preprocessing X-Git-Tag: 0_60_2~155 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=63ae66198d3f2d51d077a8fbcdaf1e5fe80a210f;p=oweals%2Fbusybox.git use the pedantically correct compiler for preprocessing --- diff --git a/Makefile b/Makefile index e8f4b251d..67cdb315b 100644 --- a/Makefile +++ b/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/applets/busybox.sh b/applets/busybox.sh index 7c3deb20e..9ab0f4bdb 100755 --- a/applets/busybox.sh +++ b/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.sh b/busybox.sh index 7c3deb20e..9ab0f4bdb 100755 --- a/busybox.sh +++ b/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 `