* [Caml-list] Passing configuration options to opam
@ 2016-09-06 9:25 Christoph Höger
2016-09-06 9:46 ` Daniel Bünzli
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Höger @ 2016-09-06 9:25 UTC (permalink / raw)
To: caml users
Dear all,
I want to pass a ./configure switch to a package installed via opam. Is
that possible?
In particular, I want to install ocaml-lua with the --enable-luajit
option set.
thanks for any advice,
Christoph
--
Christoph Höger
Technische Universität Berlin
Fakultät IV - Elektrotechnik und Informatik
Übersetzerbau und Programmiersprachen
Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin
Tel.: +49 (30) 314-24890
E-Mail: christoph.hoeger@tu-berlin.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] Passing configuration options to opam
2016-09-06 9:25 [Caml-list] Passing configuration options to opam Christoph Höger
@ 2016-09-06 9:46 ` Daniel Bünzli
2016-09-06 9:49 ` Daniel Bünzli
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Bünzli @ 2016-09-06 9:46 UTC (permalink / raw)
To: Christoph Höger; +Cc: caml users
On Tuesday 6 September 2016 at 11:25, Christoph Höger wrote:
> I want to pass a ./configure switch to a package installed via opam. Is
> that possible?
>
> In particular, I want to install ocaml-lua with the --enable-luajit
> option set.
You can do `opam pin edit ocaml-lua` and change the build instructions to your wishes. But best would be to upstream luajit discovery.
Best,
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] Passing configuration options to opam
2016-09-06 9:46 ` Daniel Bünzli
@ 2016-09-06 9:49 ` Daniel Bünzli
2016-09-06 10:34 ` Louis Gesbert
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Bünzli @ 2016-09-06 9:49 UTC (permalink / raw)
To: Christoph Höger; +Cc: caml users
On Tuesday 6 September 2016 at 11:46, Daniel Bünzli wrote:
> You can do `opam pin edit ocaml-lua` and change the build instructions to your wishes. But best would be to upstream luajit discovery.
Note that you will first need to pin to a specific version using e.g. `opam pin add ocaml-lua 1.4`
D
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] Passing configuration options to opam
2016-09-06 9:49 ` Daniel Bünzli
@ 2016-09-06 10:34 ` Louis Gesbert
2016-09-06 11:47 ` Ivan Gotovchits
0 siblings, 1 reply; 5+ messages in thread
From: Louis Gesbert @ 2016-09-06 10:34 UTC (permalink / raw)
To: caml-list, Daniel Bünzli; +Cc: Christoph Höger
> - Daniel Bünzli, 06/09/2016 11:49 -
> On Tuesday 6 September 2016 at 11:46, Daniel Bünzli wrote:
> > You can do `opam pin edit ocaml-lua` and change the build instructions to your wishes. But best would be to upstream luajit discovery.
>
> Note that you will first need to pin to a specific version using e.g. `opam pin add ocaml-lua 1.4`
[not anymore in opam 2.0, but it's not out yet]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] Passing configuration options to opam
2016-09-06 10:34 ` Louis Gesbert
@ 2016-09-06 11:47 ` Ivan Gotovchits
0 siblings, 0 replies; 5+ messages in thread
From: Ivan Gotovchits @ 2016-09-06 11:47 UTC (permalink / raw)
To: Louis Gesbert; +Cc: caml-list, Daniel Bünzli, Christoph Höger
[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]
Hi Christoph,
Since ocaml-lua is using oasis build system underneath the hood it is
possible to control configuration parameters via environment variables. Any
variable, if not set
explicitly by a command line, will be looked up in the environment. In
your case enabling `luajit` should be as simple as:
luajit=true opam install ocaml-lua
Regards,
Ivan
On Tue, Sep 6, 2016 at 6:34 AM, Louis Gesbert <louis.gesbert@ocamlpro.com>
wrote:
> > - Daniel Bünzli, 06/09/2016 11:49 -
> > On Tuesday 6 September 2016 at 11:46, Daniel Bünzli wrote:
> > > You can do `opam pin edit ocaml-lua` and change the build instructions
> to your wishes. But best would be to upstream luajit discovery.
> >
> > Note that you will first need to pin to a specific version using e.g.
> `opam pin add ocaml-lua 1.4`
>
> [not anymore in opam 2.0, but it's not out yet]
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
[-- Attachment #2: Type: text/html, Size: 1892 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-09-06 11:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-06 9:25 [Caml-list] Passing configuration options to opam Christoph Höger
2016-09-06 9:46 ` Daniel Bünzli
2016-09-06 9:49 ` Daniel Bünzli
2016-09-06 10:34 ` Louis Gesbert
2016-09-06 11:47 ` Ivan Gotovchits
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox