projects
/
openwrt
/
staging
/
wigyori.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfbd90d
)
toolchain/gcc: fix build on arm with clang as host gcc replacement
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 15 May 2014 20:11:54 +0000
(20:11 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 15 May 2014 20:11:54 +0000
(20:11 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40772
toolchain/gcc/common.mk
patch
|
blob
|
history
diff --git
a/toolchain/gcc/common.mk
b/toolchain/gcc/common.mk
index af971ba78e31e878b4d14515228058210cb4f802..5dfbc488cd46d66ff1c8f9800c61f36be6645812 100644
(file)
--- 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)" \