Sfoglia il codice sorgente

if target arch installs into a lib64 dir, make sure we move the stuff to plain old lib

Mike Frysinger 20 anni fa
parent
commit
fbd8ef5267
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      toolchain/gcc/gcc-uclibc-3.x.mk

+ 7 - 0
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/*