Browse thread
Options order for ocamlc/opt/opt.opt
-
Romain Beauxis
-
Romain Beauxis
-
Julien Moutinho
- Julien Moutinho
-
Julien Moutinho
-
Romain Beauxis
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Julien Moutinho <julien.moutinho@g...> |
| Subject: | Re: [Caml-list] Re: Options order for ocamlc/opt/opt.opt |
On Sat, Nov 24, 2007 at 04:10:46AM +0100, Julien Moutinho wrote:
> Options passed to -cclib are in !Clflags.ccobjs to which -l<foo> flags are appended,
> hence your patch:
> Printf.sprintf "%s %s %s %s %s %s %s %s %s %s -o %s"
> !Clflags.c_linker
> (if !Clflags.gprofile then Config.cc_profile else "")
> (Clflags.std_include_flag "-I")
> (Ccomp.quote_files
> (List.map (fun dir -> if dir = "" then "" else "-L" ^ dir)
> !load_path))
> (String.concat " " !Clflags.ccopts)
> (Ccomp.quote_files (List.rev !Clflags.ccobjs))
> (Filename.quote startup_file)
> (Ccomp.quote_files (List.rev file_list))
> (Ccomp.quote_optfile runtime_lib)
> c_lib
> (Filename.quote output_name)
Sorry, copy/paste error your patch is:
Printf.sprintf "%s %s %s %s %s %s %s %s %s %s -o %s"
!Clflags.c_linker
(if !Clflags.gprofile then Config.cc_profile else "")
(Clflags.std_include_flag "-I")
(Ccomp.quote_files
(List.map (fun dir -> if dir = "" then "" else "-L" ^ dir)
!load_path))
(String.concat " " !Clflags.ccopts)
(Filename.quote startup_file)
(Ccomp.quote_files (List.rev file_list))
(Ccomp.quote_optfile runtime_lib)
(Ccomp.quote_files (List.rev !Clflags.ccobjs)) (* here is !Clflags.ccobjs *)
c_lib
(Filename.quote output_name)
It changes nothing to what I said previously.