Changeset 12148


Ignore:
Timestamp:
2008-08-05T20:02:54+02:00 (10 years ago)
Author:
nbd
Message:

replace config.guess and config.sub properly, even if they are in a subdirectory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/package-defaults.mk

    r12029 r12148  
    7777CONFIGURE_CMD = ./configure 
    7878 
     79replace_script=$(FIND) $(1) -name $(2) | $(XARGS) -n1 cp $(SCRIPT_DIR)/$(2); 
     80 
    7981define Build/Configure/Default 
    8082        (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/$(strip $(3)); \ 
    8183        if [ -x $(CONFIGURE_CMD) ]; then \ 
    82                 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/$(3)/ && \ 
     84                $(call replace_script,$(PKG_BUILD_DIR)/$(3),config.guess) \ 
     85                $(call replace_script,$(PKG_BUILD_DIR)/$(3),config.sub) \ 
    8386                $(CONFIGURE_VARS) \ 
    8487                $(2) \ 
Note: See TracChangeset for help on using the changeset viewer.