diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2005-08-03 01:25:12 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2005-08-03 01:25:12 +0000 |
commit | 593c8b05a5b00197eda3d2e0482940b702f089fe (patch) | |
tree | b6f204b37d8b75da5e89ac1c1acca54d3c74dd28 | |
parent | 5c445e68c7211da6818f822d7d84f61e88d7149f (diff) | |
download | buildroot-novena-593c8b05a5b00197eda3d2e0482940b702f089fe.tar.gz buildroot-novena-593c8b05a5b00197eda3d2e0482940b702f089fe.zip |
Create some symlinks for {*-}cc since gcc 3.3.6 (at least) doesn't seem to install them.
-rw-r--r-- | toolchain/gcc/gcc-uclibc-3.x.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk index 6027cf8b7..ff08458c5 100644 --- a/toolchain/gcc/gcc-uclibc-3.x.mk +++ b/toolchain/gcc/gcc-uclibc-3.x.mk @@ -180,6 +180,14 @@ $(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled ifeq ($(GCC_STRIP_HOST_BINARIES),true) -strip --strip-all -R .note -R .comment $(STAGING_DIR)/bin/* endif + # Make sure we have 'cc'. + if [ ! -e $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-cc ] ; then \ + ln -snf $(REAL_GNU_TARGET_NAME)-gcc \ + $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-cc ; \ + fi; + if [ ! -e $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/cc ] ; then \ + ln -snf gcc $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/cc ; \ + fi; # Set up the symlinks to enable lying about target name. set -e; \ (cd $(STAGING_DIR); \ @@ -326,6 +334,10 @@ endif cp -f $(STAGING_DIR)/$(GCC_LIB_SUBDIR)/include/syslimits.h \ $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/ ; \ fi + # Make sure we have 'cc'. + if [ ! -e $(TARGET_DIR)/usr/bin/cc ] ; then \ + ln -snf gcc $(TARGET_DIR)/usr/bin/cc ; \ + fi; # These are in /lib, so... #rm -rf $(TARGET_DIR)/usr/lib/libgcc_s*.so* #touch -c $(TARGET_DIR)/usr/bin/gcc |