]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 21 Jul 2012 00:53:46 +0000 (10:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:17 +0000 (13:02 +1000)
commitb42efe44271be5e1783d243b05b83b290ec5ac07
treebb104b57520f4d6ecbe3756852700f8b45681388
parent9393b42d6f16ea27670bb616afbbec69761426dc
mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it

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 <tony@bakeyournoodle.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/mn10300/Makefile