Changeset 27580


Ignore:
Timestamp:
2011-07-10T22:12:53+02:00 (7 years ago)
Author:
jow
Message:

[packages] crtmpserver: properly locate toolchain on backfire

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/multimedia/crtmpserver/Makefile

    r25679 r27580  
    4545endef 
    4646 
     47# XXX: this hack handles the usr/bin vs bin difference of backfire and trunk 
     48TS_BASE:=$(wildcard $(TOOLCHAIN_DIR)/bin/$(TARGET_CC)) 
     49TS_BASE:=$(dir $(if $(TS_BASE),$(TS_BASE),$(wildcard $(TOOLCHAIN_DIR)/usr/bin/$(TARGET_CC)))) 
     50 
    4751define Build/Configure 
    4852        (cd $(PKG_BUILD_DIR)/builders/make; \ 
    4953                cp linux.mk linux-openwrt-uclibc.mk; \ 
    50                 $(SED) 's,^TOOLCHAIN_BASE[[:space:]]*=.*,TOOLCHAIN_BASE=$(TOOLCHAIN_DIR)/bin/,' \ 
     54                $(SED) 's,^TOOLCHAIN_BASE[[:space:]]*=.*,TOOLCHAIN_BASE=$(TS_BASE),' \ 
    5155                        -e 's,^TOOLCHAIN_PREFIX[[:space:]]*=.*,TOOLCHAIN_PREFIX=$(TARGET_CROSS),' \ 
    5256                        -e 's,^OPTIMIZATIONS[[:space:]]*=.*,OPTIMIZATIONS=-O2,' \ 
Note: See TracChangeset for help on using the changeset viewer.