aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-15 20:11:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-15 20:11:54 +0000
commit7fbc2d1b23e623d7d559e0a3ab4816e7ccaf1762 (patch)
tree7c2c4a7efa4d7e9ed9ea5de3fb1cf1eeb9932ca8 /toolchain
parent201f003a76e6495d77181f6a67d979baff882b7c (diff)
downloadmaster-187ad058-7fbc2d1b23e623d7d559e0a3ab4816e7ccaf1762.tar.gz
master-187ad058-7fbc2d1b23e623d7d559e0a3ab4816e7ccaf1762.tar.bz2
master-187ad058-7fbc2d1b23e623d7d559e0a3ab4816e7ccaf1762.zip
toolchain/gcc: fix build on arm with clang as host gcc replacement
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40772 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk
index af971ba78e..5dfbc488cd 100644
--- a/toolchain/gcc/common.mk
+++ b/toolchain/gcc/common.mk
@@ -95,6 +95,10 @@ endif
GCC_CONFIGURE:= \
SHELL="$(BASH)" \
+ $(if $(shell gcc --version 2>&1 | grep LLVM), \
+ CFLAGS="-O2 -fbracket-depth=512 -pipe" \
+ CXXFLAGS="-O2 -fbracket-depth=512 -pipe" \
+ ) \
$(HOST_SOURCE_DIR)/configure \
--with-bugurl=$(BUGURL) \
--with-pkgversion="$(PKGVERSION)" \