gluon/patches/lede/0034-toolchain-gcc-reduce-source-directory-size-by-about-.patch

33 lines
1.0 KiB
Diff
Raw Normal View History

2017-06-26 20:23:31 +00:00
From 26f43a58af428a27cfdcd15907a41e4751ef0d4e Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@nbd.name>
Date: Wed, 1 Feb 2017 08:29:06 +0100
Subject: [PATCH] toolchain/gcc: reduce source directory size by about 420 MB
Remove gcc testsuite, ada and libjava (if not selected)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
toolchain/gcc/common.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk
index fce8a5165c..c6e01b5758 100644
--- a/toolchain/gcc/common.mk
+++ b/toolchain/gcc/common.mk
@@ -71,6 +71,12 @@ HOST_STAMP_INSTALLED:=$(STAGING_DIR_HOST)/stamp/.gcc_$(GCC_VARIANT)_installed
SEP:=,
TARGET_LANGUAGES:="c,c++$(if $(CONFIG_INSTALL_LIBGCJ),$(SEP)java)$(if $(CONFIG_INSTALL_GFORTRAN),$(SEP)fortran)$(if $(CONFIG_INSTALL_GCCGO),$(SEP)go)"
+TAR_OPTIONS += --exclude='gcc/testsuite/*' --exclude=gcc/ada/*.ad*
+
+ifndef CONFIG_INSTALL_LIBGCJ
+ TAR_OPTIONS += --exclude=libjava
+endif
+
export libgcc_cv_fixed_point=no
ifdef CONFIG_USE_UCLIBC
export glibcxx_cv_c99_math_tr1=no
--
2.13.1