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