Change Details
| include/host.mk |
| 1 | 1 | # |
| 2 | | # Copyright (C) 2007 OpenWrt.org |
| 2 | # Copyright (C) 2007-2010 OpenWrt.org |
| 3 | 3 | # |
| 4 | 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | 5 | # See /LICENSE for more information. |
| ... | ... | |
| 14 | 14 | |
| 15 | 15 | ifneq ($(__host_inc),1) |
| 16 | 16 | __host_inc:=1 |
| 17 | |
| 18 | try-run = $(shell set -e; \ |
| 19 | TMP_F="$(TMP_DIR)/try-run.$$$$.tmp"; \ |
| 20 | if ($(1)) >/dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi; \ |
| 21 | rm -f "$$TMP_F"; \ |
| 22 | ) |
| 23 | |
| 24 | host-cc-option = $(call try-run, \ |
| 25 | $(HOSTCC) $(HOST_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP_F",$(1),$(2) \ |
| 26 | ) |
| 27 | |
| 17 | 28 | .PRECIOUS: $(TMP_DIR)/.host.mk |
| 18 | 29 | $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk |
| 19 | 30 | @mkdir -p $(TMP_DIR) |
Download the corresponding diff file