浏览代码

fix build on systems where native ar/ranlib don't work for target

explicitly pass the pathnames to newly-installed binutils versions of
these programs into musl's make.
Rich Felker 9 年之前
父节点
当前提交
b453751480
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -146,7 +146,7 @@ musl/.mcm_configured: musl/.mcm_cloned gcc-$(GCC_VER)/build0/.mcm_built
 	touch $@
 
 musl/.mcm_built: musl/.mcm_configured
-	cd musl && $(MAKE)
+	cd musl && $(MAKE) AR=$(OUTPUT)/bin/$(TARGET)-ar RANLIB=$(OUTPUT)/bin/$(TARGET)-ranlib
 	touch $@
 
 musl/.mcm_installed: musl/.mcm_built