febootstrap: Fix build on platforms where there is no native OCaml compiler.
authorHilko Bengen <bengen@hilluzination.de>
Thu, 25 Aug 2011 18:39:46 +0000 (19:39 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 25 Aug 2011 18:39:46 +0000 (19:39 +0100)
Makefile.am

index 109d2c8..7ac5079 100644 (file)
@@ -58,15 +58,17 @@ XOBJECTS = $(SOURCES_ML:.ml=.cmx)
 
 if !HAVE_OCAMLOPT
 OBJECTS = $(BOBJECTS)
+BEST    = c
 else
 OBJECTS = $(XOBJECTS)
+BEST    = opt
 endif
 
 OCAMLPACKAGES = -package unix,str
 OCAMLFLAGS = -warn-error CDEFLMPSUVXYZ
 
 febootstrap: $(OBJECTS)
-       $(OCAMLFIND) $(OCAMLBEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) -linkpkg \
+       $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) -linkpkg \
          $^ -o $@
 
 .mli.cmi: