blob: 69ecea63fdae35f56a32115e417efb64ac822741 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# Copyright 2003 - 2004 Pathscale, Inc
2# Released under the GPL
3
Paolo 'Blaisorblade' Giarrusso2465b852006-10-11 01:21:38 -07004core-y += arch/um/sys-x86_64/ arch/x86_64/crypto/
Linus Torvalds1da177e2005-04-16 15:20:36 -07005START := 0x60000000
6
Paolo 'Blaisorblade' Giarrusso1875a482006-10-11 01:21:31 -07007_extra_flags_ = -fno-builtin -m64
Paolo 'Blaisorblade' Giarrusso06837502006-09-27 01:50:27 -07008
Paolo 'Blaisorblade' Giarrusso20d00212005-07-14 00:33:43 -07009#We #undef __x86_64__ for kernelspace, not for userspace where
10#it's needed for headers to work!
akpm@osdl.orgd45e44d2006-10-29 22:46:42 -080011ARCH_KERNEL_DEFINES = -U__$(SUBARCH)__
12CFLAGS += $(_extra_flags_)
Paolo 'Blaisorblade' Giarrusso06837502006-09-27 01:50:27 -070013
viro@ZenIV.linux.org.uk2624f122005-09-09 17:14:12 +010014CHECKFLAGS += -m64
Jeff Dikeff23db52006-06-30 01:55:58 -070015AFLAGS += -m64
16LDFLAGS += -m elf_x86_64
Jeff Dikeb076bb02006-07-14 00:24:03 -070017CPPFLAGS += -m64
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
19ELF_ARCH := i386:x86-64
20ELF_FORMAT := elf64-x86-64
Rob Landley53c0b592005-12-18 17:50:35 +010021
22# Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example.
23
24LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64
Jeff Dikeff23db52006-06-30 01:55:58 -070025LINK-y += -m64