diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-04-13 20:47:35 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-04-13 20:47:35 +0000 |
commit | 31fc530ad1998df34e6c763c25ee0b6e819908ab (patch) | |
tree | da3aa9b2ae258465d35b8ae3904a157673f6d148 /make/ccache.mk | |
parent | 082d86f0cedc8a78810692855898989c24c08c58 (diff) | |
download | buildroot-novena-31fc530ad1998df34e6c763c25ee0b6e819908ab.tar.gz buildroot-novena-31fc530ad1998df34e6c763c25ee0b6e819908ab.zip |
Split off the C++ stuff and only install when INSTALL_LIBSTDCPP
is enabled
Diffstat (limited to 'make/ccache.mk')
-rw-r--r-- | make/ccache.mk | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/make/ccache.mk b/make/ccache.mk index af4a7cc5d..06e9a540a 100644 --- a/make/ccache.mk +++ b/make/ccache.mk @@ -45,23 +45,26 @@ $(STAGING_DIR)/$(CCACHE_TARGET_BINARY): $(CCACHE_DIR1)/$(CCACHE_BINARY) mkdir -p $(TOOL_BUILD_DIR)/.ccache; cp $(CCACHE_DIR1)/ccache $(STAGING_DIR)/usr/bin (cd $(STAGING_DIR)/usr/bin; \ - ln -fs $(ARCH)-linux-uclibc-gcc $(ARCH)-linux-cc; \ - ln -fs $(ARCH)-linux-uclibc-gcc $(ARCH)-linux-uclibc-cc); - [ -f $(STAGING_DIR)/bin/$(ARCH)-linux-uclibc-gcc ] && \ - mv $(STAGING_DIR)/bin/$(ARCH)-linux-uclibc-gcc $(STAGING_DIR)/usr/bin/ - [ -f $(STAGING_DIR)/bin/$(ARCH)-linux-uclibc-c++ ] && \ - mv $(STAGING_DIR)/bin/$(ARCH)-linux-uclibc-c++ $(STAGING_DIR)/usr/bin/ - [ -f $(STAGING_DIR)/bin/$(ARCH)-linux-uclibc-g++ ] && \ - mv $(STAGING_DIR)/bin/$(ARCH)-linux-uclibc-g++ $(STAGING_DIR)/usr/bin/ + ln -fs $(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc $(OPTIMIZE_FOR_CPU)-linux-cc; \ + ln -fs $(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc $(OPTIMIZE_FOR_CPU)-linux-uclibc-cc); + [ -f $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc ] && \ + mv $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc $(STAGING_DIR)/usr/bin/ (cd $(STAGING_DIR)/bin; \ - ln -fs ../usr/bin/ccache $(ARCH)-linux-cc; \ - ln -fs ../usr/bin/ccache $(ARCH)-linux-gcc; \ - ln -fs ../usr/bin/ccache $(ARCH)-linux-c++; \ - ln -fs ../usr/bin/ccache $(ARCH)-linux-g++;\ - ln -fs ../usr/bin/ccache $(ARCH)-linux-uclibc-cc; \ - ln -fs ../usr/bin/ccache $(ARCH)-linux-uclibc-gcc; \ - ln -fs ../usr/bin/ccache $(ARCH)-linux-uclibc-c++; \ - ln -fs ../usr/bin/ccache $(ARCH)-linux-uclibc-g++); + ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-cc; \ + ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-gcc; \ + ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-uclibc-cc; \ + ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-uclibc-gcc); +ifeq ($(INSTALL_LIBSTDCPP),true) + [ -f $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-c++ ] && \ + mv $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-c++ $(STAGING_DIR)/usr/bin/ + [ -f $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-g++ ] && \ + mv $(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-g++ $(STAGING_DIR)/usr/bin/ + (cd $(STAGING_DIR)/bin; \ + ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-c++; \ + ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-g++;\ + ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-uclibc-c++; \ + ln -fs ../usr/bin/ccache $(OPTIMIZE_FOR_CPU)-linux-uclibc-g++); +endif ifeq ($(GCC_2_95_TOOLCHAIN),true) ccache: gcc2_95 $(STAGING_DIR)/$(CCACHE_TARGET_BINARY) |