gcc-final: ensure TARGET_DIR/usr/lib exists before copying to it
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 17 Jul 2013 07:31:06 +0000 (09:31 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 17 Jul 2013 07:31:06 +0000 (09:31 +0200)
Got dropped in the toolchain/gcc -> package/gcc conversion.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gcc/gcc-final/gcc-final.mk

index b89b2b72b6ddd34b1c774641a46d6b7fac1f93dd..0d9d581ac7ca9cce2b58e749cb9853dc1b1b2903 100644 (file)
@@ -128,6 +128,7 @@ endif
 
 ifneq ($(HOST_GCC_FINAL_USR_LIBS),)
 define HOST_GCC_FINAL_INSTALL_USR_LIBS
+       mkdir -p $(TARGET_DIR)/usr/lib
        for i in $(HOST_GCC_FINAL_USR_LIBS) ; do \
                cp -dpf $(HOST_DIR)/usr/$(GNU_TARGET_NAME)/lib*/$${i}.so* \
                        $(STAGING_DIR)/usr/lib/ ; \