ocaml: Fix OCaml dependencies.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 30 Nov 2011 17:08:27 +0000 (17:08 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 2 Dec 2011 08:37:09 +0000 (08:37 +0000)
(cherry picked from commit ce331df0f1857bccebaaddfac79677bc9f527197)

ocaml/Makefile.am

index 5287035..95185ef 100644 (file)
@@ -139,9 +139,9 @@ depend: .depend
 .depend: $(wildcard *.mli) $(wildcard *.ml)
        rm -f $@ $@-t
        $(OCAMLFIND) ocamldep $^ | \
-         $(SED) 's/ *$$//' | \
+         $(SED) -e 's/ *$$//' | \
          $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \
-         sort > $@-t
+         LANG=C sort > $@-t
        mv $@-t $@
 
 include .depend