Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ 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: oasis

On 26-11-2010, Anastasia Gornostaeva <> wrote:
> Hello.
> How can I substitute in (not in _oasis file) values for
> CCOpt and CCLib fields? I think it is better to substitute them from 
>, if I could to put proper values to
> For example:
>   CCOpt: $freetype_ccopt
> and put to output of `freetype-config --clib` for field 
> freetype_ccopt.

As I answer you in private: there will be pkg-config support in 0.3.0.
This will solve this issue, at least.

(e.g. you will be able to define:
BuildDepends: freetype2 (pkg-config), oUnit, ...)

> The expected alternative way:
>   $ocaml -build --override 'library("library-name").CCOpt' `freetype-config --clib`
> does not work, too.

The override stuff only works for defined runtime variables (ocamlc,

> I need a way to substitute paths.

A last solution, you can apply right now, is to override this call:
let () = setup ();;
(last line of


let f pkg = 
  (* Call freetype-config and add flags where 
     needed in pkg

let () = BaseSetup.setup (f setup_t);;

Sylvain Le Gall