diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-23 11:44:14 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-23 11:44:14 +0000 |
commit | d31382da10abe1a770e441a4dc79b478ec4d505d (patch) | |
tree | 978b9a6ffc08cf83028e15eb2c7327cf32a99142 /scripts | |
parent | f029b49cc173b30f43ea048eadba362b35d1c5f4 (diff) | |
download | busybox-w32-d31382da10abe1a770e441a4dc79b478ec4d505d.tar.gz busybox-w32-d31382da10abe1a770e441a4dc79b478ec4d505d.tar.bz2 busybox-w32-d31382da10abe1a770e441a4dc79b478ec4d505d.zip |
- add hostcc-option checker
git-svn-id: svn://busybox.net/trunk/busybox@17487 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index a7fb4d521..c6599c8f5 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -61,6 +61,12 @@ as-option = $(shell if $(CC) $(CFLAGS) $(1) -Wa,-Z -c -o /dev/null \ | |||
61 | cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ | 61 | cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ |
62 | > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) | 62 | > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) |
63 | 63 | ||
64 | # hostcc-option | ||
65 | # Usage: hostcflags-y += $(call hostcc-option, -march=winchip-c6, -march=i586) | ||
66 | |||
67 | hostcc-option = $(shell if $(HOSTCC) $(HOSTCFLAGS) $(1) -S -o /dev/null -xc /dev/null \ | ||
68 | > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) | ||
69 | |||
64 | # cc-option-yn | 70 | # cc-option-yn |
65 | # Usage: flag := $(call cc-option-yn, -march=winchip-c6) | 71 | # Usage: flag := $(call cc-option-yn, -march=winchip-c6) |
66 | cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ | 72 | cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ |