Ocamlbuild should preserve package order if there are no dependencies #5468
Original bug ID: 5468
Consider packages foo, bar1, and bar2, where both bar1 and bar2 depend on foo. Moreover, bar2 should appear before bar1 when linking.
The problem is if Ocamlbuild is given the _tags file below, it will correctly put foo before bar1 and bar2, but it's also likely to change the order between bar1 and bar2, causing linking problems.
true: package(bar2), package(bar1), package(foo)
This sort of problem could be easily avoided if Ocamlbuild were to preserve the package order when there is no known dependency between packages.
The text was updated successfully, but these errors were encountered:
Comment author: dario
Just checked a small dummy example with 4.01.0+dev8_2012-09-10. The order is now preserved indeed -- thanks! I still haven't been able to test it with the real world project which prompted my initial bug report though, because it depends on some external libraries which are not yet compatible with 4.00. Nevertheless, I assume it's safe to close this issue. If eventually I run into any problems I'll reopen it...