From: Christoph Egger Date: Tue, 1 Nov 2011 19:03:38 +0000 (+0000) Subject: tools/ocaml: unify build process X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=71fbeb088826b530ef00eddb429df162e8e493b2;p=xen.git tools/ocaml: unify build process Unify ocaml build process for different platforms. Signed-off-by: Christoph Egger Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/ocaml/common.make b/tools/ocaml/common.make index 17a300c807..949433faba 100644 --- a/tools/ocaml/common.make +++ b/tools/ocaml/common.make @@ -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