summaryrefslogtreecommitdiffstats
path: root/package/gcc
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2015-12-07 08:31:31 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-12-07 08:34:17 +0100
commita4a1c47f289ef2d8e3a888f65a617444dccd8baa (patch)
treed9b3e9a475466688b3b82b94006ad091a5c3d854 /package/gcc
parent25129550c325ee29ccb976c136c7f9bb56c9ef03 (diff)
downloadbuildroot-a4a1c47f289ef2d8e3a888f65a617444dccd8baa.tar.gz
buildroot-a4a1c47f289ef2d8e3a888f65a617444dccd8baa.zip
gcc: host-cloog is not needed for graphite support on gcc 5.x
See https://gcc.gnu.org/gcc-5/changes.html Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gcc')
-rw-r--r--package/gcc/gcc.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index b9551e8974..07883d074a 100644
--- a/package/gcc/gcc.mk
+++ b/package/gcc/gcc.mk
@@ -170,8 +170,14 @@ HOST_GCC_COMMON_CONF_OPTS += --with-mpc=$(HOST_DIR)/usr
endif
ifeq ($(BR2_GCC_ENABLE_GRAPHITE),y)
-HOST_GCC_COMMON_DEPENDENCIES += host-isl host-cloog
-HOST_GCC_COMMON_CONF_OPTS += --with-isl=$(HOST_DIR)/usr --with-cloog=$(HOST_DIR)/usr
+HOST_GCC_COMMON_DEPENDENCIES += host-isl
+HOST_GCC_COMMON_CONF_OPTS += --with-isl=$(HOST_DIR)/usr
+# gcc 5 doesn't need cloog any more, see
+# https://gcc.gnu.org/gcc-5/changes.html
+ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_5),)
+HOST_GCC_COMMON_DEPENDENCIES += host-cloog
+HOST_GCC_COMMON_CONF_OPTS += --with-cloog=$(HOST_DIR)/usr
+endif
else
HOST_GCC_COMMON_CONF_OPTS += --without-isl --without-cloog
endif
OpenPOWER on IntegriCloud