mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
06c5040cdb
The variable CPPFLAGS is a wellknown variable and the usage by kbuild may result in unexpected behaviour. This patch replace use of CPPFLAGS with KBUILD_CPPFLAGS all over the tree and enabling one to use: make CPPFLAGS=... to specify additional CPP commandline options. Patch was tested on following architectures: alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390 Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
26 lines
628 B
Plaintext
26 lines
628 B
Plaintext
# Copyright 2003 - 2004 Pathscale, Inc
|
|
# Released under the GPL
|
|
|
|
core-y += arch/um/sys-x86_64/ arch/x86_64/crypto/
|
|
START := 0x60000000
|
|
|
|
_extra_flags_ = -fno-builtin -m64
|
|
|
|
#We #undef __x86_64__ for kernelspace, not for userspace where
|
|
#it's needed for headers to work!
|
|
ARCH_KERNEL_DEFINES = -U__$(SUBARCH)__
|
|
KBUILD_CFLAGS += $(_extra_flags_)
|
|
|
|
CHECKFLAGS += -m64
|
|
KBUILD_AFLAGS += -m64
|
|
LDFLAGS += -m elf_x86_64
|
|
KBUILD_CPPFLAGS += -m64
|
|
|
|
ELF_ARCH := i386:x86-64
|
|
ELF_FORMAT := elf64-x86-64
|
|
|
|
# Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example.
|
|
|
|
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64
|
|
LINK-y += -m64
|