Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Vincent Sanders and committed by
Russell King
bcccc50c f8f5701b

+3
+3
arch/arm/Makefile
··· 10 10 # 11 11 # Copyright (C) 1995-2001 by Russell King 12 12 13 + # Ensure linker flags are correct 14 + LDFLAGS := 15 + 13 16 LDFLAGS_vmlinux :=-p --no-undefined -X 14 17 ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) 15 18 LDFLAGS_vmlinux += --be8