I'm using oasis (with ocamlbuild) to create a library.  Specifically, I'm writing bindings to portmidi.

Naming my ocaml library "portmidi" causes linking problems.  It seems to be from a conflict when linking the C-library "-lportmidi" (the linker tries to link with the local libportmidi.a file instead of the file in /usr/lib).  My solution at the moment is to just give my ocaml library a different name, however I'd prefer to name it "portmidi".

Is there a simple fix?

Thanks,
-Niki Yoshiuchi