ia64/xen-unstable
changeset 13062:c6f637694b85
[TOOLS] USe -mno-direct-seg-refs when building on i386.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kfraser@localhost.localdomain |
---|---|
date | Fri Dec 15 11:53:45 2006 +0000 (2006-12-15) |
parents | bc3ff220d24d |
children | 41d9f00140c5 4a347a6ed5dc |
files | tools/Rules.mk |
line diff
1.1 --- a/tools/Rules.mk Fri Dec 15 11:50:04 2006 +0000 1.2 +++ b/tools/Rules.mk Fri Dec 15 11:53:45 2006 +0000 1.3 @@ -19,6 +19,10 @@ CFLAGS += $(shell getconf LFS_CFLAGS) 1.4 CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE 1.5 LDFLAGS += $(shell getconf LFS_LDFLAGS) 1.6 1.7 +# 32-bit x86 does not perform well with -ve segment accesses on Xen. 1.8 +CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs) 1.9 +CFLAGS += $(CFLAGS-y) 1.10 + 1.11 %.opic: %.c 1.12 $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $< 1.13