* ocamlbuild & linker options
@ 2010-02-03 9:02 John Lepikhin
2010-02-03 9:04 ` [Caml-list] " Matthieu Dubuget
0 siblings, 1 reply; 4+ messages in thread
From: John Lepikhin @ 2010-02-03 9:02 UTC (permalink / raw)
To: caml-list
Hello,
Is there a way to pass option "-R /some/path" to GCC linker from
ocamlbuild? I tried "ocamlbuild -lflags -cclib,-R,/some/path", but
without success.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] ocamlbuild & linker options
2010-02-03 9:02 ocamlbuild & linker options John Lepikhin
@ 2010-02-03 9:04 ` Matthieu Dubuget
2010-02-03 9:17 ` John Lepikhin
0 siblings, 1 reply; 4+ messages in thread
From: Matthieu Dubuget @ 2010-02-03 9:04 UTC (permalink / raw)
To: caml-list
-------- Original Message --------
Subject: [Caml-list] ocamlbuild & linker options
From: John Lepikhin <john@ispsystem.com>
To: caml-list@inria.fr
Date: 03/02/2010 10:02
> Hello,
>
> Is there a way to pass option "-R /some/path" to GCC linker from
> ocamlbuild? I tried "ocamlbuild -lflags -cclib,-R,/some/path", but
> without success.
try: ocamlbuild -lflags -cclib,-R,-cclib,/some/path
Hoping this will help
Salutations
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] ocamlbuild & linker options
2010-02-03 9:04 ` [Caml-list] " Matthieu Dubuget
@ 2010-02-03 9:17 ` John Lepikhin
2010-02-03 9:36 ` John Lepikhin
0 siblings, 1 reply; 4+ messages in thread
From: John Lepikhin @ 2010-02-03 9:17 UTC (permalink / raw)
To: caml-list
Hello,
> > Is there a way to pass option "-R /some/path" to GCC linker from
> > ocamlbuild? I tried "ocamlbuild -lflags -cclib,-R,/some/path", but
> > without success.
> try: ocamlbuild -lflags -cclib,-R,-cclib,/some/path
Thank you for quick reply. I made a mistake in the first post. Option
that should be passed to GCC: -Wl,-R/some/path (with comma).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] ocamlbuild & linker options
2010-02-03 9:17 ` John Lepikhin
@ 2010-02-03 9:36 ` John Lepikhin
0 siblings, 0 replies; 4+ messages in thread
From: John Lepikhin @ 2010-02-03 9:36 UTC (permalink / raw)
To: caml-list
Hello,
> Thank you for quick reply. I made a mistake in the first post. Option
> that should be passed to GCC: -Wl,-R/some/path (with comma).
The solution is: don't use -Wl, use -Xlinker instead:
ocamlbuild -cclib,-Xlinker,-cclib,-R/some/path
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-03 9:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-03 9:02 ocamlbuild & linker options John Lepikhin
2010-02-03 9:04 ` [Caml-list] " Matthieu Dubuget
2010-02-03 9:17 ` John Lepikhin
2010-02-03 9:36 ` John Lepikhin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox