aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-16 16:00:17 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-16 16:00:17 +0100
commit6fcad535ee3a47e3efee9a45bb6cb40b5ab76898 (patch)
treebe8dab109a7428fca943047491e10756ac6b1cc2 /Config.mk
parent2aef8806418125a5121dba3de623f10f982342fc (diff)
downloadxen-6fcad535ee3a47e3efee9a45bb6cb40b5ab76898.tar.gz
xen-6fcad535ee3a47e3efee9a45bb6cb40b5ab76898.tar.bz2
xen-6fcad535ee3a47e3efee9a45bb6cb40b5ab76898.zip
Tack -m32/-m64 on HOSTCFLAGS when COMPILE_ARCH is x86.
Should fix building in Solaris environments. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Config.mk b/Config.mk
index 529d9f0e21..16d6360cef 100644
--- a/Config.mk
+++ b/Config.mk
@@ -20,6 +20,9 @@ SHELL ?= /bin/sh
HOSTCC = gcc
HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
HOSTCFLAGS += -fno-strict-aliasing
+HOSTCFLAGS_x86_32 = -m32
+HOSTCFLAGS_x86_64 = -m64
+HOSTCFLAGS += $(HOSTCFLAGS_$(XEN_COMPILE_ARCH))
DISTDIR ?= $(XEN_ROOT)/dist
DESTDIR ?= /