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

ocamlmklib + linker options #3189

Closed
vicuna opened this issue Feb 7, 2002 · 3 comments
Closed

ocamlmklib + linker options #3189

vicuna opened this issue Feb 7, 2002 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 7, 2002

Original bug ID: 872
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hello,

unfortunately, it is not possible to pass any kind of option to the linker
when using ocamlmklib. E.g., I would like to be able to do the following:

ocamlmklib -Wl,-mimpure-text -o pcre pcre.cmo pcre.cmx pcre_intf.o -lpcre -L.

But the "-mimpure-text"-function is not passed on. This prevents me
from linking this example in shared mode under Solaris due to some
platform-dependent peculiarities. Of course, I can always link things
explicitly, but it would be nice if ocamlmklib supported this option in
its full generality.

Regards,
Markus Mottl

--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus

@vicuna
Copy link
Author

vicuna commented Feb 13, 2002

Comment author: administrator

unfortunately, it is not possible to pass any kind of option to the linker
when using ocamlmklib. E.g., I would like to be able to do the following:

ocamlmklib -Wl,-mimpure-text -o pcre pcre.cmo pcre.cmx pcre_intf.o -lpcre
-L.

This is indeed a problem.
I've just added a -ldopt option to ocamlmklib. This is to emphasize the fact
that this option is only passed to the shared librarian, while other options are
passed to ocamlc also.
This is only intended for very specific options, since more usual ones as
"-rdynamic" or "-pthread" are useless here.

Jacques Garrigue

@vicuna
Copy link
Author

vicuna commented Feb 13, 2002

Comment author: administrator

Jacques added a -ldopt option (2002-02-13)

@vicuna vicuna closed this as completed Feb 13, 2002
@vicuna
Copy link
Author

vicuna commented Feb 13, 2002

Comment author: administrator

On Wed, 13 Feb 2002, Jacques Garrigue wrote:

unfortunately, it is not possible to pass any kind of option to the linker
when using ocamlmklib. E.g., I would like to be able to do the following:

ocamlmklib -Wl,-mimpure-text -o pcre pcre.cmo pcre.cmx pcre_intf.o -lpcre
-L.

This is indeed a problem. I've just added a -ldopt option to ocamlmklib.

Thanks a lot!

--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus

@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant