Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlfind ocamlopt.opt?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Sylvain Le Gall <sylvain@l...>
Subject: Re: ocamlfind ocamlopt.opt?
On 17-03-2009, Alexy Khrabrov <deliverable@gmail.com> wrote:
> [This is supposed to be the shortest question to the list so far;  
> parts in brackets don't count! :)]
>
> ocamlfind ocamlopt.opt # how? [move away non.opt and ln -s x.opt x ?  
> prettier? :)]

Of course, there is prettier solution. Use a findlib configuration file.
On debian system, when installing ocaml-native-compilers, you get an
additional file "/usr/share/ocaml-findlib/ocaml-native-compilers.conf"
which auto-set the variable to use the .opt program. Here is its
content:

ocamlc="ocamlc.opt"
ocamlopt="ocamlopt.opt"
ocamldep="ocamldep.opt"
ocamldoc="ocamldoc.opt"

I think you can also directly fix it through /etc/ocamlfind.conf or any
other configuration file installed by ocamlfind.

Regards
Sylvain Le Gall