summaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/gcc-uclibc-3.x.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-22 03:06:33 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-22 03:06:33 +0000
commitfbd8ef5267e91ff5f5cf7b5ed97e15f51d4f63c4 (patch)
tree798ec230390e12932a9beb4960b34dd6440a0af6 /toolchain/gcc/gcc-uclibc-3.x.mk
parentb8086bb12475f78815640d55f57790afec993e12 (diff)
downloadbuildroot-novena-fbd8ef5267e91ff5f5cf7b5ed97e15f51d4f63c4.tar.gz
buildroot-novena-fbd8ef5267e91ff5f5cf7b5ed97e15f51d4f63c4.zip
if target arch installs into a lib64 dir, make sure we move the stuff to plain old lib
Diffstat (limited to 'toolchain/gcc/gcc-uclibc-3.x.mk')
-rw-r--r--toolchain/gcc/gcc-uclibc-3.x.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/gcc/gcc-uclibc-3.x.mk b/toolchain/gcc/gcc-uclibc-3.x.mk
index ff08458c5..455b7d30c 100644
--- a/toolchain/gcc/gcc-uclibc-3.x.mk
+++ b/toolchain/gcc/gcc-uclibc-3.x.mk
@@ -176,6 +176,13 @@ $(GCC_BUILD_DIR2)/.compiled: $(GCC_BUILD_DIR2)/.configured
$(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR2) install
+ if [ -d "$(STAGING_DIR)/lib64" ] ; then \
+ if [ ! -e "$(STAGING_DIR)/lib" ] ; then \
+ mkdir "$(STAGING_DIR)/lib" ; \
+ fi ; \
+ mv "$(STAGING_DIR)/lib64/"* "$(STAGING_DIR)/lib/" ; \
+ rmdir "$(STAGING_DIR)/lib64" ; \
+ fi
# Strip the host binaries
ifeq ($(GCC_STRIP_HOST_BINARIES),true)
-strip --strip-all -R .note -R .comment $(STAGING_DIR)/bin/*