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. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
This commit is contained in:
parent
49f6f94aee
commit
3fac2be724
@ -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
|
||||
|
@ -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*
|
||||
|
Loading…
Reference in New Issue
Block a user