WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] tools: ocaml: push CFLAGS usage down into the specif

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] tools: ocaml: push CFLAGS usage down into the specific bindings
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: 2011年3月31日 11:41:22 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: 2011年3月31日 03:42:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.6.4
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1301568069 -3600
# Node ID ae7532099ea5045278c9dcf8a593da497722a11f
# Parent 43ecf2418e94e89ea4fc28252e4710e7eee56098
tools: ocaml: push CFLAGS usage down into the specific bindings
So each binding only builds against what it requires.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 43ecf2418e94 -r ae7532099ea5 tools/ocaml/common.make
--- a/tools/ocaml/common.make Thu Mar 31 11:34:35 2011 +0100
+++ b/tools/ocaml/common.make Thu Mar 31 11:41:09 2011 +0100
@@ -9,7 +9,6 @@ OCAMLLEX ?= ocamllex
 OCAMLYACC ?= ocamlyacc
 
 CFLAGS += -fPIC -Werror
-CFLAGS += $(CFLAGS_xeninclude) $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore) 
$(CFLAGS_libxenlight)
 CFLAGS-$(CONFIG_Linux) += -I/usr/lib64/ocaml -I/usr/lib/ocaml
 CFLAGS-$(CONFIG_NetBSD) += -I/usr/pkg/lib/ocaml -fPIC
 
diff -r 43ecf2418e94 -r ae7532099ea5 tools/ocaml/libs/eventchn/Makefile
--- a/tools/ocaml/libs/eventchn/Makefile Thu Mar 31 11:34:35 2011 +0100
+++ b/tools/ocaml/libs/eventchn/Makefile Thu Mar 31 11:41:09 2011 +0100
@@ -2,6 +2,8 @@ TOPLEVEL=$(CURDIR)/../..
 XEN_ROOT=$(TOPLEVEL)/../..
 include $(TOPLEVEL)/common.make
 
+CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_xeninclude)
+
 OBJS = eventchn
 INTF = $(foreach obj, $(OBJS),$(obj).cmi)
 LIBS = eventchn.cma eventchn.cmxa
diff -r 43ecf2418e94 -r ae7532099ea5 tools/ocaml/libs/xb/Makefile
--- a/tools/ocaml/libs/xb/Makefile Thu Mar 31 11:34:35 2011 +0100
+++ b/tools/ocaml/libs/xb/Makefile Thu Mar 31 11:41:09 2011 +0100
@@ -3,6 +3,8 @@ XEN_ROOT=$(TOPLEVEL)/../..
 include $(TOPLEVEL)/common.make
 
 CFLAGS += -I../mmap
+CFLAGS += $(CFLAGS_libxenctrl) # For xen_mb()
+CFLAGS += $(CFLAGS_xeninclude)
 OCAMLINCLUDE += -I ../mmap
 
 .NOTPARALLEL:
diff -r 43ecf2418e94 -r ae7532099ea5 tools/ocaml/libs/xl/Makefile
--- a/tools/ocaml/libs/xl/Makefile Thu Mar 31 11:34:35 2011 +0100
+++ b/tools/ocaml/libs/xl/Makefile Thu Mar 31 11:41:09 2011 +0100
@@ -2,6 +2,8 @@ TOPLEVEL=$(CURDIR)/../..
 XEN_ROOT=$(TOPLEVEL)/../..
 include $(TOPLEVEL)/common.make
 
+CFLAGS += $(CFLAGS_libxenlight)
+
 OBJS = xl
 INTF = xl.cmi
 LIBS = xl.cma xl.cmxa
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] [PATCH] xen: fix reloc.S generation , Christoph Egger
Next by Date: [Xen-devel] [PATCH] tools: ocaml: drop some commented out build rules , Ian Campbell
Previous by Thread: [Xen-devel] [PATCH] xen: fix reloc.S generation , Christoph Egger
Next by Thread: Re: [Xen-devel] [PATCH] tools: ocaml: push CFLAGS usage down into the specific bindings [and 2 more messages] , Ian Jackson
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /