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
ocamlopt's -noautolink
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-03-28 (15:47)
From: Deokhwan Kim <dk@r...>
Subject: ocamlopt's -noautolink

Is it possible to tell ocamlopt to override -cclib and -copt options
contained in a specific .cmxa library?

I know -noautolink option but it has influence on all libraries on the
command line. So if I set -noautolink option, I have to pass all -cclib
or -ccopt options for not only the specific library but also any other

I have found a solution for a .cma library.

  Jacques Garrigue, Re: [Caml-list] A step short of -noautolink?

But it doesn't work for a .cmxa library.

  $ ocamlopt -a -noautolink -o bar.cmxa foo.cmxa
  foo.cmxa is not a compilation unit description.

Best regards,

Deokhwan Kim