Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Deokhwan Kim <dk@r...>
Subject: ocamlopt's -noautolink
Hello,

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
libraries.

I have found a solution for a .cma library.

  Jacques Garrigue, Re: [Caml-list] A step short of -noautolink?
  http://groups.google.com/group/fa.caml/tree/browse_frm/thread/bae2c274124be50c/a6ec0bb3da6606f5#doc_d0cf65c1d40035b7

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