aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2013-08-15 16:38:25 +0100
committerTim Deegan <tim@xen.org>2013-08-16 18:28:36 +0100
commit3da32f9dafe6016decb9ebbad008cca6fab818ca (patch)
tree45a3909815c0a3369c779b025fe7ba1e8ac497e9 /config
parent1e30327eeb08420e75f6296aac0625f361948028 (diff)
downloadxen-3da32f9dafe6016decb9ebbad008cca6fab818ca.tar.gz
xen/x86: hypervisor build fixes for FreeBSD.
These allow an x86_64 hypervisor to build on FreeBSD 9.1/amd64. - like OpenBSD, needs a different arch passed to ld. - like OpenBSD, stdarg.h and stdbool.h are in /usr/include. Signed-off-by: Tim Deegan <tim@xen.org> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'config')
-rw-r--r--config/x86_64.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/x86_64.mk b/config/x86_64.mk
index 70c0d8d47e..d925b23770 100644
--- a/config/x86_64.mk
+++ b/config/x86_64.mk
@@ -20,5 +20,9 @@ EFI_DIR ?= /usr/lib64/efi
ifeq ($(XEN_OS),OpenBSD)
LDFLAGS_DIRECT += -melf_x86_64_obsd
else
+ifeq ($(XEN_OS),FreeBSD)
+LDFLAGS_DIRECT += -melf_x86_64_fbsd
+else
LDFLAGS_DIRECT += -melf_x86_64
endif
+endif