use the pedantically correct compiler for preprocessing
authorEric Andersen <andersen@codepoet.org>
Wed, 26 Sep 2001 06:20:54 +0000 (06:20 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 26 Sep 2001 06:20:54 +0000 (06:20 -0000)
Makefile
applets/busybox.sh
busybox.sh

index e8f4b251d5529d4c94b268757c5dbc57b9642190..67cdb315b0d33698e3029660b9a899270225b82a 100644 (file)
--- 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
 
index 7c3deb20e01eef5b348cd646d158e9b775a1f040..9ab0f4bdbc743330b1a1baaa1175bd97c3f66f60 100755 (executable)
@@ -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.*\<BB_\(.*\)\>/\1.c/gp;' \
     | tr A-Z a-z | sort
 `
index 7c3deb20e01eef5b348cd646d158e9b775a1f040..9ab0f4bdbc743330b1a1baaa1175bd97c3f66f60 100755 (executable)
@@ -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.*\<BB_\(.*\)\>/\1.c/gp;' \
     | tr A-Z a-z | sort
 `