Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no -dllpath on ocaml #7968

Closed
vicuna opened this issue Dec 3, 2002 · 2 comments
Closed

no -dllpath on ocaml #7968

vicuna opened this issue Dec 3, 2002 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Dec 3, 2002

Original bug ID: 1493
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

It would be very useful to be able to specify additional -dllpath's to
the toplevel. The use case is 3rd party dlls not stored with the cma
that links to them, and not stored in the dllpath in the cma (because
it might change, or is system specific, etc.).

Chris

@vicuna
Copy link
Author

vicuna commented Dec 4, 2002

Comment author: administrator

From: checker@d6.com

It would be very useful to be able to specify additional -dllpath's to
the toplevel. The use case is 3rd party dlls not stored with the cma
that links to them, and not stored in the dllpath in the cma (because
it might change, or is system specific, etc.).

There is already an environment variable for that:
CAML_LD_LIBRARY_PATH

-dllpath has a different goal: it tells the ocaml linker to
hardwire extra paths in the executable. It doesn't even work with the
librarian: they won't be stored in .cmas. Since this option is only
used for bytecode, and bytecode should rather be architecture
independant, I now agree with Xavier when he said we should deprecate
it (or replace it with a CAML_LD_RUN_PATH variable).
Note that ocamlmklib also has a -dllpath option, which is only a
synonym to -rpath: had a path inside a stub dll, to access system
C libraries. This just adds to the confusion.

Actually your suggestion of -dllpath as an alternative to
CAML_LD_LIBRARY_PATH makes more sense than the current meaning(s).

Maybe more important than these problem would be adding versioning
support in ocamlmklib: this is already possible by explicitly
specifying the stub library name, but an explicit option would
encourage using version numbers to avoid conflicts.


Jacques Garrigue Kyoto University garrigue at kurims.kyoto-u.ac.jp
JG

@vicuna
Copy link
Author

vicuna commented Jan 3, 2003

Comment author: administrator

We'd rather not complicate the DLL search path issue even more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant