blob: 87d63737eb7e1812e2c8673a3cca7edb72106622 [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' 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!
Paolo 'Blaisorblade' Giarrusso06837502006-09-27 01:50:27 -070011CFLAGS += -U__$(SUBARCH)__ $(_extra_flags_)
12USER_CFLAGS += $(_extra_flags_)
13
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