ia64/xen-unstable

view xen/arch/x86/Rules.mk @ 3014:fa4a637449cb

bitkeeper revision 1.1159.170.39 (419b5581poSuvE_McWQiO9aFYWL_yg)

Merge freefall.cl.cam.ac.uk:/local/scratch/kaf24/xen-2.0.bk
into freefall.cl.cam.ac.uk:/local/scratch/kaf24/xeno
author kaf24@freefall.cl.cam.ac.uk
date Wed Nov 17 13:43:29 2004 +0000 (2004-11-17)
parents b902d48320c4 b902d48320c4
children cf2447c5a0c6 fbfa79f89dfa 708bd9c8362b
line source
1 ########################################
2 # x86-specific definitions
4 CC := gcc
5 LD := ld
7 CFLAGS := -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
8 CFLAGS += -iwithprefix include -Wall -Werror -pipe
9 CFLAGS += -I$(BASEDIR)/include -Wno-pointer-arith -Wredundant-decls
11 ifeq ($(optimize),y)
12 CFLAGS += -O3 -fomit-frame-pointer
13 else
14 x86_32/usercopy.o: CFLAGS += -O1
15 endif
17 # Prevent floating-point variables from creeping into Xen.
18 CFLAGS += -msoft-float
20 # Disable PIE/SSP if GCC supports them. They can break us.
21 CFLAGS += $(call test-gcc-flag,-nopie)
22 CFLAGS += $(call test-gcc-flag,-fno-stack-protector)
23 CFLAGS += $(call test-gcc-flag,-fno-stack-protector-all)
25 ifeq ($(TARGET_SUBARCH),x86_32)
26 CFLAGS += -m32 -march=i686
27 LDFLAGS := --oformat elf32-i386
28 endif
30 ifeq ($(TARGET_SUBARCH),x86_64)
31 CFLAGS += -m64 -mno-red-zone -fpic -fno-reorder-blocks
32 CFLAGS += -fno-asynchronous-unwind-tables
33 LDFLAGS := --oformat elf64-x86-64
34 endif