From: Ian Campbell Date: Thu, 31 Mar 2011 18:07:06 +0000 (+0100) Subject: tools: ocaml: do not try to link dynamic objects into .a libraries X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bce637c6e406b9b396bbbe9be080e724cd428a2e;p=xen.git tools: ocaml: do not try to link dynamic objects into .a libraries lib_stubs.a was linking against $(LIBS_) which only includes dynamic linkage information which is not useful for a static library. $(LIBS_) is still used when linking .cmxa Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/ocaml/Makefile.rules b/tools/ocaml/Makefile.rules index c630764569..b669764fe6 100644 --- a/tools/ocaml/Makefile.rules +++ b/tools/ocaml/Makefile.rules @@ -54,7 +54,7 @@ mk-caml-lib-bytecode = $(call quiet-command, $(OCAMLC) $(OCAMLCFLAGS) -a -o $1 $ mk-caml-stubs = $(call quiet-command, $(OCAMLMKLIB) -o `basename $1 .a` $2,MKLIB,$1) mk-caml-lib-stubs = \ - $(call quiet-command, $(AR) rcs $1 $2 && $(OCAMLMKLIB) -o `basename $1 .a | sed -e 's/^lib//'` $3 $2,MKLIB,$1) + $(call quiet-command, $(AR) rcs $1 $2 && $(OCAMLMKLIB) -o `basename $1 .a | sed -e 's/^lib//'` $2,MKLIB,$1) # define a library target .cmxa and .cma define OCAML_LIBRARY_template @@ -65,7 +65,7 @@ define OCAML_LIBRARY_template $(1)_stubs.a: $(foreach obj,$$($(1)_C_OBJS),$(obj).o) $(call mk-caml-stubs,$$@, $$+) lib$(1)_stubs.a: $(foreach obj,$($(1)_C_OBJS),$(obj).o) - $(call mk-caml-lib-stubs,$$@, $$+, $(LIBS_$(1))) + $(call mk-caml-lib-stubs,$$@, $$+) endef define OCAML_NOC_LIBRARY_template