projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9321d52
)
mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it
author
Geert Uytterhoeven
<
[email protected]
>
Fri, 5 Oct 2012 00:11:13 +0000
(17:11 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 5 Oct 2012 18:04:36 +0000
(
03:04
+0900)
It seems the current (gcc 4.6.3) no longer provides this so make it
conditional.
As reported by Tony before, the mn10300 architecture cross-compiles with
gcc-4.6.3 if -mmem-funcs is not added to KBUILD_CFLAGS.
Reported-by: Tony Breeds <
[email protected]
>
Signed-off-by: Geert Uytterhoeven <
[email protected]
>
Cc: David Howells <
[email protected]
>
Cc: Koichi Yasutake <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/mn10300/Makefile
patch
|
blob
|
history
diff --git
a/arch/mn10300/Makefile
b/arch/mn10300/Makefile
index 33188b6e81e4509d060aab524de1d9ac5a54d67d..a3d0fef3b126ba859e5fe0459b1e12658cbebe69 100644
(file)
--- a/
arch/mn10300/Makefile
+++ b/
arch/mn10300/Makefile
@@
-26,7
+26,7
@@
CHECKFLAGS +=
PROCESSOR := unset
UNIT := unset
-KBUILD_CFLAGS += -mam33 -
mmem-funcs -DCPU=AM33
+KBUILD_CFLAGS += -mam33 -
DCPU=AM33 $(call cc-option,-mmem-funcs,)
KBUILD_AFLAGS += -mam33 -DCPU=AM33
ifeq ($(CONFIG_MN10300_CURRENT_IN_E2),y)