gcc: fix build with musl.
authorChristian Beier <[email protected]>
Tue, 21 Jul 2015 13:58:29 +0000 (15:58 +0200)
committerChristian Beier <[email protected]>
Tue, 21 Jul 2015 14:01:59 +0000 (16:01 +0200)
Signed-off-by: Christian Beier <[email protected]>
devel/gcc/Makefile

index 9cdde88dda2f66f208b5e58523fc0c2b59081e9b..1f3f0e3db7c5c64478e03beec5130bd14b739436 100644 (file)
@@ -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