blob: 9558a7cf34d599f8eda369838ffda69bba6ec646 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# Copyright 2003 - 2004 Pathscale, Inc
2# Released under the GPL
3
Al Virode2fe5e2006-03-31 02:30:11 -08004core-y += arch/um/sys-x86_64/
Linus Torvalds1da177e2005-04-16 15:20:36 -07005START := 0x60000000
6
Paolo 'Blaisorblade' Giarrusso20d00212005-07-14 00:33:43 -07007#We #undef __x86_64__ for kernelspace, not for userspace where
8#it's needed for headers to work!
Jeff Dikeff23db52006-06-30 01:55:58 -07009CFLAGS += -U__$(SUBARCH)__ -fno-builtin -m64
10USER_CFLAGS += -fno-builtin -m64
viro@ZenIV.linux.org.uk2624f122005-09-09 17:14:12 +010011CHECKFLAGS += -m64
Jeff Dikeff23db52006-06-30 01:55:58 -070012AFLAGS += -m64
13LDFLAGS += -m elf_x86_64
Jeff Dikeb076bb02006-07-14 00:24:03 -070014CPPFLAGS += -m64
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
16ELF_ARCH := i386:x86-64
17ELF_FORMAT := elf64-x86-64
Rob Landley53c0b592005-12-18 17:50:35 +010018
19# Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example.
20
21LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64
Jeff Dikeff23db52006-06-30 01:55:58 -070022LINK-y += -m64