aboutsummaryrefslogtreecommitdiff
path: root/busybox.mkll
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-04-06 00:10:39 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-04-06 00:10:39 +0000
commit576b80c3cfd21a8f80ea92e97cd87add7b7a27f8 (patch)
tree452da337a26872bcb08b52b1a02bdd772de8bfaf /busybox.mkll
parent333368e6149394013fcf0df39a2043cc058672e5 (diff)
downloadbusybox-w32-576b80c3cfd21a8f80ea92e97cd87add7b7a27f8.tar.gz
busybox-w32-576b80c3cfd21a8f80ea92e97cd87add7b7a27f8.tar.bz2
busybox-w32-576b80c3cfd21a8f80ea92e97cd87add7b7a27f8.zip
Use gcc -E instead of cpp to enhance portability for brain
damaged platforms (i.e. OpenLinux) that do not have cpp in the default path but instead hide it under /usr/lib/... -Erik git-svn-id: svn://busybox.net/trunk/busybox@432 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'busybox.mkll')
-rwxr-xr-xbusybox.mkll2
1 files changed, 1 insertions, 1 deletions
diff --git a/busybox.mkll b/busybox.mkll
index 90f28e8b7..fba0c8c81 100755
--- a/busybox.mkll
+++ b/busybox.mkll
@@ -5,7 +5,7 @@ DF="busybox.def.h"
5MF="busybox.c" 5MF="busybox.c"
6 6
7#LIST="$(sed -n '/^#define/{s/^#define BB_FEATURE_.*//g;s/^#define //p;}' $DF)" 7#LIST="$(sed -n '/^#define/{s/^#define BB_FEATURE_.*//g;s/^#define //p;}' $DF)"
8LIST="$(cpp $DF -dM | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1/gp;' | sort)" 8LIST="$(gcc -E -dM $DF | sed -n -e '/^.*BB_FEATURE.*$/d;s/^#define.*\<BB_\(.*\)\>/\1/gp;' | sort)"
9 9
10for def in ${LIST}; do 10for def in ${LIST}; do
11 i=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*\(_BB_DIR_[A-Z_]*\).*$/\2\/\1/gp; }' $MF` 11 i=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*\(_BB_DIR_[A-Z_]*\).*$/\2\/\1/gp; }' $MF`