From 82e56d1bf871712e9baa5c8199e12bec210cfa8e Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Tue, 21 Jul 2015 15:58:29 +0200 Subject: [PATCH] gcc: fix build with musl. Signed-off-by: Christian Beier --- devel/gcc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devel/gcc/Makefile b/devel/gcc/Makefile index 9cdde88dda..1f3f0e3db7 100644 --- a/devel/gcc/Makefile +++ b/devel/gcc/Makefile @@ -54,6 +54,10 @@ define Build/Prepare # we have to download additional stuff before patching (cd $(PKG_BUILD_DIR) && ./contrib/download_prerequisites) $(Build/Patch) +# poor man's fix for `none-openwrt-linux' not recognized when building with musl + cp $(PKG_BUILD_DIR)/config.sub $(PKG_BUILD_DIR)/mpfr/ + cp $(PKG_BUILD_DIR)/config.sub $(PKG_BUILD_DIR)/gmp/ + cp $(PKG_BUILD_DIR)/config.sub $(PKG_BUILD_DIR)/mpc/ endef