ARM: 7420/1: Improve build environment isolation
authorVincent Sanders <vince@kyllikki.org>
Tue, 13 Mar 2012 14:34:17 +0000 (15:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 3 Jun 2012 22:05:44 +0000 (23:05 +0100)
commitbcccc50ce8fcc833cfed4bb71ede211a6ef5b84a
tree7e51ec38ea79db3a5408dc3ec51fff11bdbedbeb
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f
ARM: 7420/1: Improve build environment isolation

Increasingly distributions are setting default build environments to
have LDFLAGS with hardening options. There seems to be an assumption
with those options that LDFLAGS are passed to the compiler frontend
rather than used directly with ld (which the kernel build process
assumes)

To prevent build failures in such environments this patch changes the
ARM architecture Makefile to override the LDFLAGS from the environment
similar to the behaviour on other common architectures e.g. x86

Signed-off-by: Vincent Sanders <vince@collabora.co.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Makefile