Changeset 21355


Ignore:
Timestamp:
2010-05-04T19:36:18+02:00 (7 years ago)
Author:
nico
Message:

[backfire] merge r21304

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/include/host.mk

    r17575 r21355  
    11#  
    2 # Copyright (C) 2007 OpenWrt.org 
     2# Copyright (C) 2007-2010 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1515ifneq ($(__host_inc),1) 
    1616__host_inc:=1 
     17 
     18try-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 
     24host-cc-option = $(call try-run, \ 
     25        $(HOSTCC) $(HOST_CFLAGS) $(1) -c -xc /dev/null -o "$$TMP_F",$(1),$(2) \ 
     26) 
     27 
    1728.PRECIOUS: $(TMP_DIR)/.host.mk 
    1829$(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk 
Note: See TracChangeset for help on using the changeset viewer.