svn commit: trunk/busybox/scripts
aldot at busybox.net
aldot at busybox.net
Tue Jan 23 11:44:15 UTC 2007
Author: aldot
Date: 2007-01-23 03:44:14 -0800 (Tue, 23 Jan 2007)
New Revision: 17487
Log:
- add hostcc-option checker
Modified:
trunk/busybox/scripts/Kbuild.include
Changeset:
Modified: trunk/busybox/scripts/Kbuild.include
===================================================================
--- trunk/busybox/scripts/Kbuild.include 2007-01-23 11:39:13 UTC (rev 17486)
+++ trunk/busybox/scripts/Kbuild.include 2007-01-23 11:44:14 UTC (rev 17487)
@@ -61,6 +61,12 @@
cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
+# hostcc-option
+# Usage: hostcflags-y += $(call hostcc-option, -march=winchip-c6, -march=i586)
+
+hostcc-option = $(shell if $(HOSTCC) $(HOSTCFLAGS) $(1) -S -o /dev/null -xc /dev/null \
+ > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
+
# cc-option-yn
# Usage: flag := $(call cc-option-yn, -march=winchip-c6)
cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
More information about the busybox-cvs
mailing list