diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-15 20:11:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-15 20:11:54 +0000 |
commit | 479c25641a1370bbb02cbc4fab20c30259aca67f (patch) | |
tree | 27c93501482d9773dabc1487878f5ef1e006cd27 /toolchain | |
parent | cfbd90d2bfcbc54e22dc9e425a1a73b9c16f0fa2 (diff) | |
download | upstream-479c25641a1370bbb02cbc4fab20c30259aca67f.tar.gz upstream-479c25641a1370bbb02cbc4fab20c30259aca67f.tar.bz2 upstream-479c25641a1370bbb02cbc4fab20c30259aca67f.zip |
toolchain/gcc: fix build on arm with clang as host gcc replacement
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40772
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/gcc/common.mk | 4 |
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)" \ |