Ignore:
Timestamp:
2009-11-19T18:23:31+01:00 (7 years ago)
Author:
nbd
Message:

do not use the wrapper scripts for exportable toolchains internally. on some systems the wrapper scripts are broken, and their use should be opt-in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/toolchain/Makefile

    r18419 r18454  
    2727all: compile 
    2828 
     29TOOLCHAIN_PREFIX:=$(TOOLCHAIN_BUILD_DIR)/toolchain-$(ARCH)_gcc-$(GCCV)_$(LIBC)-$(LIBCV) 
     30 
    2931$(BIN_DIR)/$(TOOLCHAIN_NAME).tar.bz2: clean 
    3032        mkdir -p $(TOOLCHAIN_BUILD_DIR) 
     
    3739                $(TOOLCHAIN_BUILD_DIR)/ 
    3840 
     41        $(CP) ./files/wrapper.sh $(TOOLCHAIN_PREFIX)/usr/bin/$(REAL_GNU_TARGET_NAME)-wrapper.sh 
     42        chmod +x $(TOOLCHAIN_PREFIX)/usr/bin/$(REAL_GNU_TARGET_NAME)-wrapper.sh 
     43        (cd $(TOOLCHAIN_PREFIX)/usr/bin; \ 
     44                for app in cc gcc g++ c++ cpp ld as ; do \ 
     45                        [ -f $(REAL_GNU_TARGET_NAME)-$${app} ] && mv $(REAL_GNU_TARGET_NAME)-$${app} $(REAL_GNU_TARGET_NAME)-$${app}.bin ; \ 
     46                        ln -sf $(REAL_GNU_TARGET_NAME)-wrapper.sh $(REAL_GNU_TARGET_NAME)-$${app} ; \ 
     47                done; \ 
     48        ) 
    3949        echo REVISION:="$(REVISION)" > $(TOOLCHAIN_BUILD_DIR)/version.mk 
    4050        find $(TOOLCHAIN_BUILD_DIR) -name .git | $(XARGS) rm -rf 
Note: See TracChangeset for help on using the changeset viewer.