From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] tools/ocaml: unify build process Date: Tue, 1 Nov 2011 10:22:27 +0100 Message-ID: <4EAFBA53.4050009@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090801060704090003040100" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org --------------090801060704090003040100 Content-Type: text/plain; charset="ISO-8859-15"; format=flowed Content-Transfer-Encoding: 7bit Unify ocaml build process for different platforms. Signed-off-by: Christoph Egger P.S.: Please apply this to xen-4.1-testing -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --------------090801060704090003040100 Content-Type: text/plain; name="xen_tools_build.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_tools_build.diff" Content-Description: xen_tools_build.diff diff -r 0d092359d86f tools/ocaml/common.make --- a/tools/ocaml/common.make Wed Oct 26 10:32:36 2011 +0200 +++ b/tools/ocaml/common.make Tue Nov 01 10:05:59 2011 +0100 @@ -8,9 +8,7 @@ OCAMLDEP ?= ocamldep OCAMLLEX ?= ocamllex OCAMLYACC ?= ocamlyacc -CFLAGS += -fPIC -Werror -CFLAGS-$(CONFIG_Linux) += -I$(shell ocamlc -where) -CFLAGS-$(CONFIG_NetBSD) += -I/usr/pkg/lib/ocaml -fPIC +CFLAGS += -fPIC -Werror -I$(shell ocamlc -where) OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^ *\(-g\) .*/\1/p') OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -cc $(CC) -w F -warn-error F --------------090801060704090003040100 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------090801060704090003040100--