2005-04-16 18:20:36 -04:00
|
|
|
# Copyright 2003 - 2004 Pathscale, Inc
|
|
|
|
# Released under the GPL
|
|
|
|
|
2006-03-31 05:30:11 -05:00
|
|
|
core-y += arch/um/sys-x86_64/
|
2005-04-16 18:20:36 -04:00
|
|
|
START := 0x60000000
|
|
|
|
|
2006-09-27 04:50:27 -04:00
|
|
|
_extra_flags_ = -fno-builtin -m64 -mcmodel=kernel
|
|
|
|
|
2005-07-14 03:33:43 -04:00
|
|
|
#We #undef __x86_64__ for kernelspace, not for userspace where
|
|
|
|
#it's needed for headers to work!
|
2006-09-27 04:50:27 -04:00
|
|
|
CFLAGS += -U__$(SUBARCH)__ $(_extra_flags_)
|
|
|
|
USER_CFLAGS += $(_extra_flags_)
|
|
|
|
|
2005-09-09 12:14:12 -04:00
|
|
|
CHECKFLAGS += -m64
|
2006-06-30 04:55:58 -04:00
|
|
|
AFLAGS += -m64
|
|
|
|
LDFLAGS += -m elf_x86_64
|
2006-07-14 03:24:03 -04:00
|
|
|
CPPFLAGS += -m64
|
2005-04-16 18:20:36 -04:00
|
|
|
|
|
|
|
ELF_ARCH := i386:x86-64
|
|
|
|
ELF_FORMAT := elf64-x86-64
|
2005-12-18 11:50:35 -05:00
|
|
|
|
|
|
|
# Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example.
|
|
|
|
|
|
|
|
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64
|
2006-06-30 04:55:58 -04:00
|
|
|
LINK-y += -m64
|