English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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