Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # Copyright 2003 - 2004 Pathscale, Inc |
| 2 | # Released under the GPL |
| 3 | |
Paolo 'Blaisorblade' Giarrusso | 2465b85 | 2006-10-11 01:21:38 -0700 | [diff] [blame] | 4 | core-y += arch/um/sys-x86_64/ arch/x86_64/crypto/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | START := 0x60000000 |
| 6 | |
Paolo 'Blaisorblade' Giarrusso | 1875a48 | 2006-10-11 01:21:31 -0700 | [diff] [blame] | 7 | _extra_flags_ = -fno-builtin -m64 |
Paolo 'Blaisorblade' Giarrusso | 0683750 | 2006-09-27 01:50:27 -0700 | [diff] [blame] | 8 | |
Paolo 'Blaisorblade' Giarrusso | 20d0021 | 2005-07-14 00:33:43 -0700 | [diff] [blame] | 9 | #We #undef __x86_64__ for kernelspace, not for userspace where |
| 10 | #it's needed for headers to work! |
akpm@osdl.org | d45e44d | 2006-10-29 22:46:42 -0800 | [diff] [blame] | 11 | ARCH_KERNEL_DEFINES = -U__$(SUBARCH)__ |
Sam Ravnborg | a0f97e0 | 2007-10-14 22:21:35 +0200 | [diff] [blame^] | 12 | KBUILD_CFLAGS += $(_extra_flags_) |
Paolo 'Blaisorblade' Giarrusso | 0683750 | 2006-09-27 01:50:27 -0700 | [diff] [blame] | 13 | |
viro@ZenIV.linux.org.uk | 2624f12 | 2005-09-09 17:14:12 +0100 | [diff] [blame] | 14 | CHECKFLAGS += -m64 |
Jeff Dike | ff23db5 | 2006-06-30 01:55:58 -0700 | [diff] [blame] | 15 | AFLAGS += -m64 |
| 16 | LDFLAGS += -m elf_x86_64 |
Jeff Dike | b076bb0 | 2006-07-14 00:24:03 -0700 | [diff] [blame] | 17 | CPPFLAGS += -m64 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
| 19 | ELF_ARCH := i386:x86-64 |
| 20 | ELF_FORMAT := elf64-x86-64 |
Rob Landley | 53c0b59 | 2005-12-18 17:50:35 +0100 | [diff] [blame] | 21 | |
| 22 | # Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example. |
| 23 | |
| 24 | LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64 |
Jeff Dike | ff23db5 | 2006-06-30 01:55:58 -0700 | [diff] [blame] | 25 | LINK-y += -m64 |