gcc: make sure that /usr/lib exists on target before installing shared libs
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 2 Oct 2008 14:32:07 +0000 (14:32 -0000)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 2 Oct 2008 14:32:07 +0000 (14:32 -0000)
On very lite systems the /usr/lib directory might not exist before libstdc++ is
installed. This patch makes sure the directory exists.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
toolchain/gcc/gcc-uclibc-3.x.mk
toolchain/gcc/gcc-uclibc-4.x.mk

index 622adbc6e999fa521d6dd75d45c01b4a5cb6ef1e..2c2b192c5ec21bdd6f16c274ef1f6b029d6a3486 100644 (file)
@@ -340,6 +340,7 @@ ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
 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
index 698069c2cc323721a3a1a73fc670c269a1ef4e20..668e9fc1fcaebf9fcffda1c6b495268083e4b9d9 100644 (file)
@@ -369,6 +369,7 @@ ifeq ($(BR2_GCC_SHARED_LIBGCC),y)
 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*