瀏覽代碼

Merge pull request #1604 from bk138/gcc-musl-fix

gcc: fix build with musl.
Steven Barth 9 年之前
父節點
當前提交
d82c9b33cf
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      devel/gcc/Makefile

+ 4
- 0
devel/gcc/Makefile 查看文件

@@ -54,6 +54,10 @@ define Build/Prepare
54 54
 # 	we have to download additional stuff before patching
55 55
 	(cd $(PKG_BUILD_DIR) && ./contrib/download_prerequisites)
56 56
 	$(Build/Patch)
57
+#	poor man's fix for `none-openwrt-linux' not recognized when building with musl
58
+	cp $(PKG_BUILD_DIR)/config.sub $(PKG_BUILD_DIR)/mpfr/
59
+	cp $(PKG_BUILD_DIR)/config.sub $(PKG_BUILD_DIR)/gmp/
60
+	cp $(PKG_BUILD_DIR)/config.sub $(PKG_BUILD_DIR)/mpc/
57 61
 endef
58 62
 
59 63