ia64/xen-unstable

view xen/arch/x86/Rules.mk @ 3003:3d470807adec

bitkeeper revision 1.1159.168.7 (419a6fbepARynjSYyfFg1S3Py1v94A)

Xen build fixes. Work with Hardened GCC.
author kaf24@freefall.cl.cam.ac.uk
date Tue Nov 16 21:23:10 2004 +0000 (2004-11-16)
parents 1b906236acc9
children afd6ea676808 fa4a637449cb fa4a637449cb
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