Skip to contentSkip to conversation

svn commit: trunk/buildroot/toolchain/gcc

Buildroot egtvedt at uclibc.org 1 participant 1 message Oct 2, 2008

lore
Share & tools
lore
#0 lore raw

Author: egtvedt
Date: 2008-10-02 07:32:07 -0700 (Thu, 02 Oct 2008) New Revision: 23578

Log:
gcc: make sure that /usr/lib exists on target before installing shared libs

On very lite systems the /usr/lib directory might not exist before libstdc++ is installed. This patch makes sure the directory exists.

Modified:
trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk

Changeset:
Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk
===================================================================

buildroot/toolchain/gcc/gcc-uclibc-3.x.mk +1 -0
@@ -340,6 +340,7 @@
 endif
 ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
 ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
+	mkdir -p $(TARGET_DIR)/usr/lib
 	-cp -dpf $(STAGING_DIR)/lib/libstdc++.so* $(TARGET_DIR)/usr/lib/
 	-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libstdc++.so*
 endif

Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-4.x.mk
===================================================================

buildroot/toolchain/gcc/gcc-uclibc-4.x.mk +1 -0
@@ -369,6 +369,7 @@
 endif
 ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
 ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
+	mkdir -p $(TARGET_DIR)/usr/lib
 	-cp -dpf $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib/libstdc++.so* \
 		$(TARGET_DIR)/usr/lib/
 	-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libstdc++.so*