[buildroot] add preliminary support for musl
[openwrt-working-2016/.git] / toolchain / gcc / initial / Makefile
index 3d8ab61cdf01c54a5971a65bfdca658afaa2559d..6a985e5af2a65f16e50a824f6c673ed9a6943187 100644 (file)
@@ -11,7 +11,7 @@ GCC_CONFIGURE += \
 
 define Host/Compile
        $(CP) $(BUILD_DIR_TOOLCHAIN)/linux-dev/* $(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/
-       $(GCC_MAKE) -C $(GCC_BUILD_DIR) \
+       +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
                all-build-libiberty \
                all-gcc \
                $(if $(GCC_BUILD_TARGET_LIBGCC),all-target-libgcc)
@@ -29,6 +29,8 @@ define Host/Install
                cp libgcc.a libgcc_initial.a; \
        )
 
+       $(call FixupLibdir,$(TOOLCHAIN_DIR)/initial)
+
        $(CP) $(TOOLCHAIN_DIR)/initial/. $(TOOLCHAIN_DIR)/
 endef